[
http://jira.codehaus.org/browse/MANTTASKS-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy updated MANTTASKS-78:
-----------------------------------
Attachment: MANTTASKS-78.diff
Found and fixed the problem
When no id is specified on a repository declaration, a default id is used.
It was hardcoded as "remote" (even for local repo).
Then if there was 2 remoteRepository declarations, they had the same id even if
they were for different urls...
With this patch, the default id for local repo is "local", and the url for a
remote repo: we can't have the same id when 2 repos are different
> unable to download a dependency when it is a SNAPSHOT and multiple
> remoteRepositories are used
> ----------------------------------------------------------------------------------------------
>
> Key: MANTTASKS-78
> URL: http://jira.codehaus.org/browse/MANTTASKS-78
> Project: Maven 2.x Ant Tasks
> Issue Type: Bug
> Components: dependencies task, POM Integration
> Affects Versions: 2.0.7
> Reporter: Herve Boutemy
> Attachments: MANTTASKS-78.diff, MANTTASKS-78.diff
>
>
> the conditions for this problem are very precise:
> {code:xml}
> <artifact:pom file="${user.dir}/src/test/pom-with-parent-SNAPSHOT.xml"
> id="my.maven.project.SNAPSHOT">
> <localRepository path="target/tmp"/>
> <remoteRepository url="file://${user.dir}/src/test/repo"/>
> <remoteRepository url="file://${user.dir}/target/tmp/fake"/>
> </artifact:pom>
> {code}
> but if the second remoteRepository is removed, or even the 2 repositories
> switched, there is no problem...
--
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