• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

mvn dependency:build-classpath not considering includeScope parameter

Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
`mvn dependency:build-classpath -DincludeScope=test`

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


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.
Yeah, but how did the squirrel get in there? Was it because of the tiny ad?
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic