列出SNAPSHOT依赖项

时间:2016-01-13 10:39:57

标签: maven pom.xml release

是否有插件或任何其他方式列出项目的SNAPSHOT依赖项? 我只需要这些依赖项及其版本的名称(例如org.my.company:1.1.1-SNAPSHOT)

1 个答案:

答案 0 :(得分:2)

mvn dependency:list | grep -i snapshot

mvn dependency:tree -Dincludes=:::*-SNAPSHOT

虽然您需要的只是稍微谷歌:) https://maven.apache.org/plugins/maven-dependency-plugin/examples/filtering-the-dependency-tree.html