You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Torben S. Giesselmann (JIRA)" <ji...@codehaus.org> on 2009/02/05 19:14:19 UTC
[jira] Updated: (MNG-3375) Repository entries with same id are
ignored
[ http://jira.codehaus.org/browse/MNG-3375?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Torben S. Giesselmann updated MNG-3375:
---------------------------------------
Attachment: MNG-3375-maven-project.patch
With this patch, Maven will throw an {{InvalidRepositoryException}} if a repository's ID is not unique and the build will fail. I opted for the build to fail (instead of just issuing a warning) because running a build against a completely different repository can be a source of unnecessary build problems. A simple warning could easily be missed.
> Repository entries with same id are ignored
> -------------------------------------------
>
> Key: MNG-3375
> URL: http://jira.codehaus.org/browse/MNG-3375
> Project: Maven 2
> Issue Type: Bug
> Components: Artifacts and Repositories
> Affects Versions: 2.0.8
> Reporter: Carlos Sanchez
> Priority: Critical
> Fix For: 2.0.11
>
> Attachments: MNG-3375-maven-project.patch
>
>
> If two <repository> entries have the same id one of them is ignored with no warning or error.
> IIRC this worked with previous versions of maven, giving the same id allowed you to share the configuration in the settings.xml file (it may have been for deployment only though)
--
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