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

dependecies task overrides custom definition of 'central' repository

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.1
    • 2.1.2
    • None
    • None
    • Patch

    Description

      While using

      <artifact:dependencies cacheDependencyRefs="false" pathId="maven.dependency.classpath"  useScope="test">
        <pom file="pom.xml"/>
      </artifact:dependencies>

      with pom

       <project>
       ...
       <repositories>
         <repository>
           <id>central</id>
           <url>[https://custom/mvn/central]</url>
           <snapshots>
             <enabled>true</enabled>
           </snapshots>
           <releases>
             <enabled>true</enabled>
           </releases>
         </repository>
      
        </repositories>
       </project>

      the task is still trying to resolve my dependencies from http://repo2.maven.org/maven2.

      A patch resolving this issue is attached.

      Attachments

        1. patch2.txt
          2 kB
          Miroslaw Michalski

        Activity

          People

            pgier Paul Gier
            mi0ne Miroslaw Michalski
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: