Transitive dependency resolve as nothing ----------------------------------------
Key: MDEP-199 URL: http://jira.codehaus.org/browse/MDEP-199 Project: Maven 2.x Dependency Plugin Issue Type: Bug Components: resolve Affects Versions: 2.1 Environment: Maven 2.0.9/2.0.10 Linux i386 Reporter: Filippo De Luca Assignee: Brian Fox Hi As specified at [Transitive Dependencies|http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html#Transitive_Dependencies] the provided transitive dependences, are resolved as provided. I have a j2ee multimodule project. A business module, an ejb module, a web module and ear module. The business module have the ejb3-persistence dependency with scope provided (provided by jboss), the web module have dependency over business module. in the main project pom I have declared ejb3-persistence as provided. mvn dependency-tree for web module don't show ejb3-persistence. web/pom.xml: {noformat} <dependencies> <dependency> <groupId>it.filosganga</groupId> <artifactId>videoar-business</artifactId> </dependency> <dependency> <groupId>javax.servlet</groupId> <artifactId>servlet-api</artifactId> </dependency> <dependency> <groupId>javax.faces</groupId> <artifactId>jsf-api</artifactId> </dependency> <dependency> <groupId>com.sun.facelets</groupId> <artifactId>jsf-facelets</artifactId> </dependency> ... </dependencies> {noformat} business/pom.xml: {noformat} <dependencies> <dependency> <groupId>org.hibernate</groupId> <artifactId>ejb3-persistence</artifactId> </dependency> <dependency> <groupId>org.hibernate</groupId> <artifactId>hibernate-validator</artifactId> </dependency> </dependencies> {noformat} main pom.xml: {noformat} <dependencyManagement> <dependencies> <!-- Project --> <dependency> <groupId>it.filosganga</groupId> <artifactId>videoar-business</artifactId> <version>${project.version}</version> </dependency> <dependency> <groupId>it.filosganga</groupId> <artifactId>videoar-ejb</artifactId> <type>ejb</type> <version>${project.version}</version> </dependency> <dependency> <groupId>it.filosganga</groupId> <artifactId>videoar-web</artifactId> <type>war</type> <version>${project.version}</version> </dependency> ... <dependency> <groupId>org.hibernate</groupId> <artifactId>ejb3-persistence</artifactId> <version>1.0.2.GA</version> </dependency> ... </dependencies> </dependencyManagement> {noformat} -- 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