I have a strange issue with importing provided dependencies.
I have a-pom.xml, which has a few dependencies and b-pom.xml which
imports a-pom.xml.
After a mvn -f a-pom.xml install && mvn -f b-pom.xml dependency:tree I
see the following:
[INFO] snapshot com.example:dependency-pom:0.1-SNAPSHOT: checking for
updates from atlassian
[INFO] [dependency:tree]
[INFO] com.example:example-jar:jar:0.1-SNAPSHOT
[INFO] \- com.example:dependency-pom:pom:0.1-SNAPSHOT:import
[INFO] +- commons-validator:commons-validator:jar:1.3.1:runtime
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.7.0:runtime
[INFO] | +- commons-digester:commons-digester:jar:1.6:runtime
[INFO] | | +- commons-collections:commons-collections:jar:2.1:runtime
[INFO] | | \- xml-apis:xml-apis:jar:1.0.b2:runtime
[INFO] | \- commons-logging:commons-logging:jar:1.0.4:runtime
[INFO] \- oro:oro:jar:2.0.8:runtime
These are all the dependencies which are in a-pom.xml except for:
<dependency>
<groupId>com.google.collections</groupId>
<artifactId>google-collections</artifactId>
<version>0.8</version>
<scope>provided</scope>
</dependency>
Did I understand or do something wrong?
With regards,
Nick Stolwijk
~Java Developer~
Iprofs BV.
Claus Sluterweg 125
2012 WS Haarlem
www.iprofs.nl
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>dependency-pom</artifactId>
<packaging>pom</packaging>
<version>0.1-SNAPSHOT</version>
<name>Example Dependency POM</name>
<dependencies>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.6</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>commons-validator</groupId>
<artifactId>commons-validator</artifactId>
<version>1.3.1</version>
</dependency>
<dependency>
<groupId>oro</groupId>
<artifactId>oro</artifactId>
<version>2.0.8</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>com.google.collections</groupId>
<artifactId>google-collections</artifactId>
<version>0.8</version>
<scope>provided</scope>
</dependency>
</dependencies>
</project>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.example</groupId>
<artifactId>example-jar</artifactId>
<packaging>jar</packaging>
<version>0.1-SNAPSHOT</version>
<name>Example Jar POM</name>
<dependencies>
<dependency>
<groupId>com.example</groupId>
<artifactId>dependency-pom</artifactId>
<version>0.1-SNAPSHOT</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</project>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]