<localRepository> setting from $M2_HOME/conf/settings.xml not respected
-----------------------------------------------------------------------

                 Key: MANTTASKS-92
                 URL: http://jira.codehaus.org/browse/MANTTASKS-92
             Project: Maven 2.x Ant Tasks
          Issue Type: Bug
          Components: dependencies task
    Affects Versions: 2.0.7
            Reporter: Richard Ziegler


|| $M2_HOME/conf/settings.xml || build.xml ||
| {code:xml}
<settings>
 <localRepository>c:/.m2repo</localRepository>
    ...
</settings>
{code} | {code:xml}
<target name="test" depends="-init-mvn">
    <artifact:dependencies 
        filesetId="runtime.deps" 
        useScope="runtime">
      <pom refid="pom"/>
    </artifact:dependencies>
   ...
</target> {code}|

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.



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to