`mvn dependency:build-classpath -DincludeScope=test` 

doesn't show test jars that have been added to the pom.xml 

    <dependency>
          <groupId>org.apache.spark</groupId>
          <artifactId>spark-streaming_${scala.binary.version}</artifactId>
          <version>${project.version}</version>
        </dependency>
        <dependency>
          <groupId>org.apache.spark</groupId>
          <artifactId>spark-streaming_${scala.binary.version}</artifactId>
          <version>${project.version}</version>
          <type>test-jar</type>
          <scope>test</scope>
        </dependency>

However, `mvn -f pom.xml dependency:tree|grep tests` does show these test
jars. Is this some kind of a bug in maven?

    Using `mvn` from path: /usr/bin/mvn
    [INFO] --- maven-dependency-plugin:2.10:tree (default-cli) @
java8-tests_2.10 ---
    [INFO] org.apache.spark:java8-tests_2.10:pom:1.6.0-cdh5.11.0-SNAPSHOT
    [INFO] |  |  +-
org.apache.avro:avro-ipc:jar:tests:1.7.6-cdh5.11.0-SNAPSHOT:compile
    [INFO] +-
org.apache.spark:spark-core_2.10:test-jar:tests:1.6.0-cdh5.11.0-SNAPSHOT:test
    [INFO] +-
org.apache.spark:spark-streaming_2.10:test-jar:tests:1.6.0-cdh5.11.0-SNAPSHOT:test

I am trying the above in a more complicated project mixing scala and java
code. On a simpler sample project this does work.



--
View this message in context: 
http://maven.40175.n5.nabble.com/mvn-dependency-build-classpath-not-considering-includeScope-parameter-tp5897291.html
Sent from the Maven - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@maven.apache.org
For additional commands, e-mail: users-h...@maven.apache.org

Reply via email to