[英]Maven: How is it possible to get a dependency in your war when it's not in your dependency tree?
[英]How can you display the Maven dependency tree for the *plugins* in your project?
通過mvn -X輸出將間接打印出信息。 目前沒有其他選擇來獲取Maven-Plugin的依賴項。
更新您可以使用以下命令獲取插件依賴項列表(依賴項插件中的resolve-plugin目標 ):
mvn org.apache.maven.plugins:maven-dependency-plugin:2.10:resolve-plugins
較短的版本是(指定插件版本是一個壞習慣)
mvn dependency:resolve-plugins
如果您使用任何IDE,如IDEA IntelliJ或Eclipse:
要在POM中添加的插件:
<build>
<plugins>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.