Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Cannot Reproduce
-
2.0.7
-
None
-
None
Description
$M2_HOME/conf/settings.xml | build.xml |
---|---|
<settings> <localRepository>c:/.m2repo</localRepository> ... </settings> |
<target name="test" depends="-init-mvn"> <artifact:dependencies filesetId="runtime.deps" useScope="runtime"> <pom refid="pom"/> </artifact:dependencies> ... </target> |
The default localRepository location is used despite having <localRepository> set in the site settings.xml
The same is true when set in $ANT_HOME/etc/settings.xml. I know this because when I invoke my ant target, I see ~/.m2/repository get created, when it shouldn't.
However, when <localRepository> is specified in ~/.m2/settings.xml or ~/.ant/settings.xml, it works. Unfortunatly this is not an option as I need to configure this at the site installation.