[ http://jira.codehaus.org/browse/MNG-1417?page=all ] John Casey closed MNG-1417: ---------------------------
Resolution: Won't Fix In the first test case, the servlet dependency is essentially respecified at the same transitive depth with a different version. Since the project's dependency collection is resolved using set semantics, it's undefined which servlet-api dependency will take precedence over the other, but the first encountered will win. In the second test, the servlet-api for commons-chain is optional and at a greater depth than the servlet-api dependency specified directly in the pom. In this case, the direct specification wins. Both tests have been verified to be working correctly. > Relocated artifacts hide other versions that should be picked > ------------------------------------------------------------- > > Key: MNG-1417 > URL: http://jira.codehaus.org/browse/MNG-1417 > Project: Maven 2 > Type: Bug > Components: maven-artifact > Versions: 2.0 > Reporter: Carlos Sanchez > Assignee: John Casey > Priority: Critical > Fix For: 2.0.1 > > Original Estimate: 2 hours > Time Spent: 1 hour > Remaining: 0 minutes > > The output of mvn -X shows nothing about the servlet-api 2.4 > <project> > <modelVersion>4.0.0</modelVersion> > <groupId>test</groupId> > <version>1</version> > <artifactId>test</artifactId> > <dependencies> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>servlet-api</artifactId> > <version>2.4</version> > </dependency> > <dependency> > <groupId>servletapi</groupId> > <artifactId>servletapi</artifactId> > <version>2.3</version> > </dependency> > </dependencies> > </project> > This is other test that fails > <project> > <modelVersion>4.0.0</modelVersion> > <groupId>test</groupId> > <version>1</version> > <artifactId>test</artifactId> > <dependencies> > <dependency> > <groupId>javax.servlet</groupId> > <artifactId>servlet-api</artifactId> > <version>2.4</version> > </dependency> > <dependency> > <groupId>commons-chain</groupId> > <artifactId>commons-chain</artifactId> > <version>1.0</version> > </dependency> > </dependencies> > </project> -- 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]