You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/06/08 23:40:42 UTC

[jira] Closed: (MNG-4193) Throw validation error upon multiple repository declarations with the same id

     [ http://jira.codehaus.org/browse/MNG-4193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Benjamin Bentmann closed MNG-4193.
----------------------------------

         Assignee: Benjamin Bentmann
       Resolution: Fixed
    Fix Version/s: 3.0-alpha-3

Done in [r782796|http://svn.apache.org/viewvc?view=rev&revision=782796].

> Throw validation error upon multiple repository declarations with the same id
> -----------------------------------------------------------------------------
>
>                 Key: MNG-4193
>                 URL: http://jira.codehaus.org/browse/MNG-4193
>             Project: Maven 2
>          Issue Type: Improvement
>          Components: POM
>    Affects Versions: 3.0-alpha-1
>            Reporter: Benjamin Bentmann
>            Assignee: Benjamin Bentmann
>            Priority: Minor
>             Fix For: 3.0-alpha-3
>
>
> Within the same POM, we should be more strict with regard to the uniqueness of identifiers. For instance
> {code:xml}
> <repositories>
>   <repository>
>     <id>one</id>
>     <url>http://repo1.maven.org/maven2</url>
>   </repository>
>   <repository>
>     <id>one</id>
>     <url>http://repository.codehaus.org/</url>
>   </repository>
> </repositories>
> {code}
> is currently considered valid. However, this usually results from copy&paste errors and the missing uniqueness makes it unnecessary complicated to define Maven's behavior during inheritance or profile injection when we want to merge elements with the same id.
> Of course, this extended validation must only apply to local builds and not to the metadata retrieval.

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