Maven target directory is owned by root after build

cancel
Showing results for 
Search instead for 
Did you mean: 
mangar
Established Member II

Maven target directory is owned by root after build

Jump to solution

I am using the AIO SDK 4.2   When I try and run and start the application, 

sudo ./run.sh build_start

All of the target directories are owned by root.   I cannot then do a simple mvn install  on an updated amp or whatever without doing a recursive chown.  Not to mention Eclipse hates it and wont build anything.

1 Solution

Accepted Solutions
abhinavmishra14
Advanced

Re: Maven target directory is owned by root after build

Jump to solution

Create the project under home folder of the user to avoid such issues.

or else do the following if not using home folder and see if it works


Provide the rwx group permission and add the user to the group you are using to start the build.

example, create a new group :

sudo groupadd Alfresco

Add the user you are currently using to the newly created group:

sudo usermod -a -G Alfresco alfresco

Here user is "alfresco"

Now provide recursive group permission from the main directory of your project. 
make sure permission is set to rwx

sudo chgrp -R Alfresco /usr/local/myAioProject

sudo chmod -R 775 /usr/local/myAioProject

 

 

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)

View solution in original post

4 Replies
abhinavmishra14
Advanced

Re: Maven target directory is owned by root after build

Jump to solution

Create the project under home folder of the user to avoid such issues.

or else do the following if not using home folder and see if it works


Provide the rwx group permission and add the user to the group you are using to start the build.

example, create a new group :

sudo groupadd Alfresco

Add the user you are currently using to the newly created group:

sudo usermod -a -G Alfresco alfresco

Here user is "alfresco"

Now provide recursive group permission from the main directory of your project. 
make sure permission is set to rwx

sudo chgrp -R Alfresco /usr/local/myAioProject

sudo chmod -R 775 /usr/local/myAioProject

 

 

 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
mangar
Established Member II

Re: Maven target directory is owned by root after build

Jump to solution

I had to add alfresco to the docker group,  but the same idea,  thank you!

abhinavmishra14
Advanced

Re: Maven target directory is owned by root after build

Jump to solution

Glad it worked for you. Good luck 

~Abhinav
(ACSCE, AWS SAA, Azure Admin)
EddieMay
Alfresco Employee

Re: Maven target directory is owned by root after build

Jump to solution

Hi @mangar 

Thanks for accepting the solution - really helpful to other users who encounter the same issue.

Cheers,

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!