Maven Ant Tasks
  1. Maven Ant Tasks
  2. MANTTASKS-195

Cannot override central repository with my own

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.0
    • Fix Version/s: 2.1.1
    • Component/s: dependencies task
    • Labels:
      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.

        Activity

        Knut Forkalsrud created issue -
        Hervé Boutemy made changes -
        Field Original Value New Value
        Assignee Herve Boutemy [ hboutemy ]
        Hide
        Hervé Boutemy added a comment -

        fixed in r965608

        Show
        Hervé Boutemy added a comment - fixed in r965608
        Hervé Boutemy made changes -
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.1.1 [ 16024 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 09:00:58 UTC 2015 [ 1428224458201 ]
        Mark Thomas made changes -
        Workflow jira [ 12716266 ] Default workflow, editable Closed status [ 12759988 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 22:08:22 UTC 2015 [ 1428271702400 ]
        Mark Thomas made changes -
        Workflow jira [ 12953522 ] Default workflow, editable Closed status [ 12990649 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        1d 2h 12m 1 Hervé Boutemy 19/Jul/10 15:56

          People

          • Assignee:
            Hervé Boutemy
            Reporter:
            Knut Forkalsrud
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development