Ant dependencies task does not work with multiple repositories
--------------------------------------------------------------

         Key: MNG-1466
         URL: http://jira.codehaus.org/browse/MNG-1466
     Project: Maven 2
        Type: Bug
  Components: maven-artifact-ant  
    Versions: 2.0.1, 2.0    
 Environment: Maven 2.0, Maven 2.0 CVS
    Reporter: Konstantin Ignatyev


The maven-dependencies task for Ant cannot work properly with multiple 
repositories because it incorrectly hardcode artifact repository ID that causes 
all the repositories cache informatioon in the same file

AbstractArtifactTask#
.... 
artifactRepository = repositoryFactory.createArtifactRepository( "remote", 
repository.getUrl(),
                                                                            
repositoryLayout, snapshots, releases );


creates all the repositories with the same ID="remote" and that causes all the 
meta-information for all the repositories collide in one file because the file 
name pattern is:${gtoupId}/${artifactId}/maven-metadata-${repositoryId}.xml

This causes whole thing work incorrectly.

When Maven itself constructs ArtifactRepository, it properly assigns ID to the 
repository and the schema works.


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to