<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><div class="">Folks,</div><div class=""><br class=""></div><div class="">I am updating the <font face="Courier" class="">postgresql-jdbc</font> port to version 42.2.8 [1] and switched to maven 3.2 for building.</div><div class=""><br class=""></div><div class="">Maven creates a local repository at <font face="Courier" class="">~/.m2/repository/</font>. Performing the extract phase then building manually under root or my own user is working fine but the build phase is performed under the <font face="Courier" class="">macports</font> user, and the creation of the <span style="font-family: Courier;" class="">/opt/local/var/macports/home/.m2/repository </span>directory fails:</div><div class=""><br class=""></div><div class=""><div class=""><font face="Courier" class="">---> Building postgresql-jdbc</font></div><div class=""><font face="Courier" class="">DEBUG: Executing org.macports.build (postgresql-jdbc)</font></div><div class=""><font face="Courier" class="">DEBUG: Environment:</font></div><div class=""><font face="Courier" class="">CC_PRINT_OPTIONS='YES'</font></div><div class=""><font face="Courier" class="">CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_Users_gm_Repositories_MyPorts_java_postgresql-jdbc/postgresql-jdbc/work/.CC_PRINT_OPTIONS'</font></div><div class=""><font face="Courier" class="">CPATH='/opt/local/include'</font></div><div class=""><font face="Courier" class="">DEVELOPER_DIR='/Library/Developer/CommandLineTools'</font></div><div class=""><font face="Courier" class="">JAVA_HOME='/Library/Java/JavaVirtualMachines/openjdk11/Contents/Home'</font></div><div class=""><font face="Courier" class="">LIBRARY_PATH='/opt/local/lib'</font></div><div class=""><font face="Courier" class="">MACOSX_DEPLOYMENT_TARGET='10.14'</font></div><div class=""><font face="Courier" class="">Executing: cd "/opt/local/var/macports/build/_Users_gm_Repositories_MyPorts_java_postgresql-jdbc/postgresql-jdbc/work/postgresql-jdbc-42.2-8.src" && mvn32 package -DskipTests</font></div><div class=""><font face="Courier" class="">DEBUG: system: cd "/opt/local/var/macports/build/_Users_gm_Repositories_MyPorts_java_postgresql-jdbc/postgresql-jdbc/work/postgresql-jdbc-42.2-8.src" && mvn32 package -DskipTests</font></div><div class=""><font face="Courier" class=""><b class="">[ERROR] Could not create local repository at /opt/local/var/macports/home/.m2/repository -> [Help 1]</b></font></div><div class=""><font face="Courier" class="">[ERROR]</font></div><div class=""><font face="Courier" class="">[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.</font></div><div class=""><font face="Courier" class="">[ERROR] Re-run Maven using the -X switch to enable full debug logging.</font></div><div class=""><font face="Courier" class="">[ERROR]</font></div><div class=""><font face="Courier" class="">[ERROR] For more information about the errors and possible solutions, please read the following articles:</font></div><div class=""><font face="Courier" class="">[ERROR] [Help 1] <a href="http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException" class="">http://cwiki.apache.org/confluence/display/MAVEN/LocalRepositoryNotAccessibleException</a></font></div><div class=""><font face="Courier" class="">Command failed: cd "/opt/local/var/macports/build/_Users_gm_Repositories_MyPorts_java_postgresql-jdbc/postgresql-jdbc/work/postgresql-jdbc-42.2-8.src" && mvn32 package -DskipTests</font></div><div class=""><font face="Courier" class="">Exit code: 1</font></div></div><div class=""><br class=""></div><div class="">Any suggestion on how to handle this Maven local repository/macports user issue?</div><div class=""><br class=""></div><div class="">TIA, </div><div class=""><br class=""></div><div class="">Georges</div><div class=""><br class=""></div><div class="">— </div>[1] <a href="https://github.com/jrjsmrtn/macports-ports/blob/update-postgresql-jdbc/java/postgresql-jdbc/Portfile" class="">https://github.com/jrjsmrtn/macports-ports/blob/update-postgresql-jdbc/java/postgresql-jdbc/Portfile</a><div class=""><br class=""><div class=""><br class=""></div></div></body></html>