Maven 3.2 local repository and macports user

Joshua Root jmr at macports.org
Thu Sep 26 22:51:16 UTC 2019


On 2019-9-27 08:09 , Chris Jones wrote:
> Hi,
> 
> I am not familiar with maven, but presumably it must have a way of
> changing the default build area to be somewhere other than ~/.m2 ?
> Assuming this to be so, use this to configure the build to use a
> directory that is under the port build area work space.

This does mean maven must be ignoring $HOME, since we set it to
"${workpath}/.home". That's unfortunate.

It looks like maven command line options work similarly to ant's, and
you use the -D option to set a property. In this case localRepository
looks promising.

<https://maven.apache.org/ref/3.2.5/maven-embedder/cli.html>
<https://maven.apache.org/ref/3.2.5/maven-settings/settings.html>

- Josh


More information about the macports-dev mailing list