[ http://jira.codehaus.org/browse/MNG-1466?page=all ]
Garrett Conaty updated MNG-1466:
--------------------------------
Attachment: id2.diff
This patch is based on an IRC conversation w/ jdcasey and replaces the previous
patch (id.diff). This patch requires all repositories to have an ID which is
consistent with the POM model.
Note: Probably another issue, but the ant task defines 2 default repositories
w/o a way for the user to turn them off.
> 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
> Attachments: id.diff, id2.diff
>
>
> 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]