How to find a dependency in maven, dependency:tree doesn#39;t work(如何在Maven中查找依赖项,依赖项:树不起作用)
本文介绍了如何在Maven中查找依赖项,依赖项:树不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在有效的POM中看到
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.3</version>
<executions>
<execution>
<id>default-site</id>
<phase>site</phase>
<goals>
<goal>site</goal>
</goals>
<configuration>
<outputDirectory>/home/tatiana/repos/selenium-tests/masbuilder-tests/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
<execution>
<id>default-deploy</id>
<phase>site-deploy</phase>
<goals>
<goal>deploy</goal>
</goals>
<configuration>
<outputDirectory>/home/tatiana/repos/selenium-tests/masbuilder-tests/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</execution>
</executions>
<configuration>
<outputDirectory>/home/tatiana/repos/selenium-tests/masbuilder-tests/target/site</outputDirectory>
<reportPlugins>
<reportPlugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
</reportPlugin>
</reportPlugins>
</configuration>
</plugin>
但我不使用maven-site-plugin,当我执行
MVN依赖关系:树
然后我在输出中看不到任何关于maven-site-plugin或"site"关键字或maven-project-info-report-plugin的内容。
相同 MVN依赖关系:树-详细
问题是有效POM中的错误,我想要删除它: 此处不允许使用元素报表插件可能与我使用的maven-surefire-plugin有关?
jruby
如果树中的较高版本已经存在依赖项,则推荐答案-Complete的所有依赖项在树中以较浅的深度列出,因为依赖项树MOJO修剪较低级别的依赖项。
您可以使用mvn dependency:tree -Dverbose=true
显示省略的依赖项。
这篇关于如何在Maven中查找依赖项,依赖项:树不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
织梦狗教程
本文标题为:如何在Maven中查找依赖项,依赖项:树不起作用


基础教程推荐
猜你喜欢
- 存储 20 位数字的数据类型 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- RabbitMQ:消息保持“未确认"; 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01