[ https://issues.apache.org/jira/browse/MNG-7965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17796695#comment-17796695 ]
Guillaume Nodet commented on MNG-7965: -------------------------------------- The logic in {{MavenStaxReader#checkDuplicate}} and similar generated code seems wrong... > Multiple repositories elems in POM, build did not fail? > ------------------------------------------------------- > > Key: MNG-7965 > URL: https://issues.apache.org/jira/browse/MNG-7965 > Project: Maven > Issue Type: Bug > Components: Artifacts and Repositories > Affects Versions: 4.0.0-alpha-9 > Reporter: Tamas Cservenak > Priority: Major > Fix For: 4.0.0-alpha-10 > > > I had two repositories element in POM, like this: > {noformat} > <!-- Remove when Resolver 2.0.0-alpha-4 is on Maven Central --> > <repositories> > <repository> > <id>maven-2046</id> > <name>Resolver 2.0.0-alpha-4 staging</name> > <url>https://repository.apache.org/content/repositories/maven-2046</url> > </repository> > </repositories> <repositories> > <repository> > <releases> > <enabled>false</enabled> > </releases> > <snapshots> > <enabled>true</enabled> > </snapshots> > <id>apache.snapshots.https</id> > <name>ASF Snapshots</name> > <url>https://repository.apache.org/content/repositories/snapshots/</url> > </repository> > </repositories> {noformat} > And Maven alpha-9 did "silently" eat this. Isn't this an error? -- This message was sent by Atlassian Jira (v8.20.10#820010)