Cannot override central repository with my own
----------------------------------------------

                 Key: MANTTASKS-195
                 URL: http://jira.codehaus.org/browse/MANTTASKS-195
             Project: Maven 2.x Ant Tasks
          Issue Type: Bug
          Components: dependencies task
    Affects Versions: 2.1.0
            Reporter: Knut Forkalsrud


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)
{code:xml}
<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>
{code}
A few lines of output from "ant -v compile":
{noformat}
[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)
{noformat}


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



-- 
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