用于查看类路径的 maven 命令
maven command for viewing classpath
我知道这个命令 - mvn dependency:build-classpath
。但我想查看编译时类路径、测试类路径和运行时类路径。它们各自的命令是什么?
您可以使用此命令的变体,试试
mvn dependency:build-classpath -DincludeScope=compile
或
mvn dependency:build-classpath -DincludeScope=runtime
或
mvn dependency:build-classpath -DincludeScope=test
(这是默认值)
如果您只是想查看不同的类路径,那么 maven-antrun-plugin 可能会在这里帮助您。 examples page 显示了您所需要的。
我知道这个命令 - mvn dependency:build-classpath
。但我想查看编译时类路径、测试类路径和运行时类路径。它们各自的命令是什么?
您可以使用此命令的变体,试试
mvn dependency:build-classpath -DincludeScope=compile
或
mvn dependency:build-classpath -DincludeScope=runtime
或
mvn dependency:build-classpath -DincludeScope=test
(这是默认值)
如果您只是想查看不同的类路径,那么 maven-antrun-plugin 可能会在这里帮助您。 examples page 显示了您所需要的。