我正在尝试使用测试范围跳过依赖关系来构建类路径。我试过这个命令
mvn dependency:build-classpath -Dmdep.outputFile=path.txt -Dmdep.excludeScope=test
但我仍然在path.txt中拥有所有范围的所有jar。有人可以告诉我,如果我做错了吗?
使用-DexcludeScope=test
关注plugin documentation:
mvn dependency:build-classpath -Dmdep.outputFile=path.txt -DexcludeScope=test
但是,根据这个Maven's issue,预计它会失败。
要包含除qazxsw poi范围之外的所有依赖项,请考虑使用qazxsw poi