Search code examples
mavenmaven-3maven-plugin

maven command for viewing classpath


I know this command - mvn dependency:build-classpath . But I want to see compile time classpath , test classpath and runtime classpath . What are commands for each of them ?


Solution

  • you can use variations of this command, try

    mvn dependency:build-classpath -DincludeScope=compile
    

    or

    mvn dependency:build-classpath -DincludeScope=runtime
    

    or

    mvn dependency:build-classpath -DincludeScope=test
    

    (which is the default)