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

Cannot override central repository with my own

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.0
    • 2.1.1
    • dependencies task
    • None

    Description

      Even if I name my repository "central" it will not override the builtin "central", but instead append to it.

      Here's my sample ant task (using maven-ant-tasks 2.1.0)

      <target name="init">
      
        <artifact:dependencies pathId="dependency.classpath" filesetId="dependency.fileset">
          <remoteRepository id="central" url="http://mycompany.net/nexus/content/repo"/>
          <dependency groupId="foo" artifactId="bar" version="3.8.2"/>
        </artifact:dependencies>
      
      </target>
      

      A few lines of output from "ant -v compile":

      [artifact:dependencies] Using remote repositories:
      
      * id=central, url=http://mycompany.net/nexus/content/repo, releases=enabled, snapshots=enabled
      * id=central, url=http://repo1.maven.org/maven2, releases=enabled, snapshots=disabled
      org.apache.maven:super-pom:jar:2.0 (selected)
      

      This was also mentioned in MANTTASKS-191, which was primarily about documentation.

      Attachments

        Activity

          People

            hboutemy Herve Boutemy
            knut-codehaus@forkalsrud.org Knut Forkalsrud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: