Java 如何在maven中找到依赖项,dependency:tree不';行不通
在一个有效的pom中,我看到了Java 如何在maven中找到依赖项,dependency:tree不';行不通,java,maven,pom.xml,maven-surefire-plugin,Java,Maven,Pom.xml,Maven Surefire Plugin,在一个有效的pom中,我看到了 <plugin> <artifactId>maven-site-plugin</artifactId> <version>3.3</version> <executions> <execution> <id>default-site</id> <phase>site</ph
<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站点插件
3.3
默认站点
网站
网站
/home/tatiana/repos/selenium tests/masbuilder tests/target/site
org.apache.maven.plugins
maven项目信息报告插件
默认部署
站点部署
部署
/home/tatiana/repos/selenium tests/masbuilder tests/target/site
org.apache.maven.plugins
maven项目信息报告插件
/home/tatiana/repos/selenium tests/masbuilder tests/target/site
org.apache.maven.plugins
maven项目信息报告插件
但我不使用maven站点插件,当我执行
mvn依赖关系:树
然后在输出中我看不到任何关于maven站点插件或“站点”关键字或maven项目信息报告插件的提及
同样的
mvn依赖项:树-Dverbose
问题是有效POM中的错误,我想将其删除:
此处不允许使用元素reportplugins
也许它与我使用的maven surefire插件有关?如果树中的较高版本已经存在依赖关系,那么所有jruby complete的依赖关系都会在树中较浅的深度列出,因为依赖关系树mojo会修剪较低级别的依赖关系
您可以使用
mvn dependency:tree-Dverbose=true
来显示指定的依赖项。您确定您使用的某些库对maven站点插件没有可传递的依赖项吗?如何检查/查看它?我尝试过使用mvn dependency:tree-Dverbose,但没有成功(请参阅dependencies,但不是这个)。听起来你是从你正在使用的一些父母那里继承了这个。我不这么认为,如何确定?