<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Maven target directory is owned by root after build in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143310#M38063</link>
    <description>&lt;P&gt;I am using the AIO SDK 4.2&amp;nbsp;&amp;nbsp; When I try and run and start the application,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sudo ./run.sh build_start&lt;/PRE&gt;&lt;P&gt;All of the target directories are owned by root.&amp;nbsp;&amp;nbsp; I cannot then do a simple mvn install&amp;nbsp; on an updated amp or whatever without doing a recursive chown.&amp;nbsp; Not to mention Eclipse hates it and wont build anything.&lt;/P&gt;</description>
    <pubDate>Sun, 02 May 2021 19:15:08 GMT</pubDate>
    <dc:creator>mangar</dc:creator>
    <dc:date>2021-05-02T19:15:08Z</dc:date>
    <item>
      <title>Maven target directory is owned by root after build</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143310#M38063</link>
      <description>&lt;P&gt;I am using the AIO SDK 4.2&amp;nbsp;&amp;nbsp; When I try and run and start the application,&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;sudo ./run.sh build_start&lt;/PRE&gt;&lt;P&gt;All of the target directories are owned by root.&amp;nbsp;&amp;nbsp; I cannot then do a simple mvn install&amp;nbsp; on an updated amp or whatever without doing a recursive chown.&amp;nbsp; Not to mention Eclipse hates it and wont build anything.&lt;/P&gt;</description>
      <pubDate>Sun, 02 May 2021 19:15:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143310#M38063</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2021-05-02T19:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: Maven target directory is owned by root after build</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143311#M38064</link>
      <description>&lt;P&gt;Create the project under home folder of the user to avoid such issues.&lt;/P&gt;
&lt;P&gt;or else do the following if not using home folder and see if it works&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Provide the rwx group permission and add the user to the group you are using to start the build.&lt;/P&gt;
&lt;P&gt;example, create a new group :&lt;/P&gt;
&lt;PRE&gt;sudo groupadd Alfresco&lt;/PRE&gt;
&lt;P&gt;Add the user you are currently using to the newly created group:&lt;/P&gt;
&lt;PRE&gt;sudo usermod -a -G Alfresco alfresco&lt;/PRE&gt;
&lt;P&gt;Here user is "alfresco"&lt;/P&gt;
&lt;P&gt;Now provide recursive group permission from the main directory of your project.&amp;nbsp;&lt;BR /&gt;make sure permission is set to rwx&lt;/P&gt;
&lt;P&gt;sudo chgrp -R Alfresco /usr/local/myAioProject&lt;/P&gt;
&lt;P&gt;sudo chmod -R 775 /usr/local/myAioProject&lt;/P&gt;</description>
      <pubDate>Mon, 03 May 2021 04:41:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143311#M38064</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-05-03T04:41:33Z</dc:date>
    </item>
    <item>
      <title>Re: Maven target directory is owned by root after build</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143312#M38065</link>
      <description>&lt;P&gt;I had to add alfresco to the docker group,&amp;nbsp; but the same idea,&amp;nbsp; thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 00:26:51 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143312#M38065</guid>
      <dc:creator>mangar</dc:creator>
      <dc:date>2021-05-05T00:26:51Z</dc:date>
    </item>
    <item>
      <title>Re: Maven target directory is owned by root after build</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143313#M38066</link>
      <description>&lt;P&gt;Glad it worked for you. Good luck&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 14:15:32 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143313#M38066</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2021-05-05T14:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Maven target directory is owned by root after build</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143314#M38067</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/20164"&gt;@mangar&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for accepting the solution - really helpful to other users who encounter the same issue.&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Thu, 06 May 2021 09:47:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/maven-target-directory-is-owned-by-root-after-build/m-p/143314#M38067</guid>
      <dc:creator>EddieMay</dc:creator>
      <dc:date>2021-05-06T09:47:05Z</dc:date>
    </item>
  </channel>
</rss>

