Uploaded image for project: 'Maven Ant Tasks (RETIRED)'
  1. Maven Ant Tasks (RETIRED)
  2. MANTTASKS-92

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.0.7
    • None
    • dependencies task
    • 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.

      Attachments

        Activity

          People

            hboutemy Herve Boutemy
            zieglerrii Richard Ziegler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: