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
            Priority: Minor


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

        

Reply via email to