2017-08-15 207 views
1

在有效POM我看到如何找到Maven的依赖,依赖关系:树不起作用

<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的网站插件,当我执行 MVN依赖性:树

然后我没有看到Maven的网站插件或输出“网站”关键字或Maven的项目信息的报告,插件的任何提及。

同为 MVN依赖性:树-Dverbose

的问题是有效的POM错误,我想删除: 元素reportplugins这里不允许使用

也许这是有关与我使用的maven-surefire-plugin

+0

你确定你使用的某个库没有对maven-site-plugin的传递依赖吗? – Makoto

+0

如何查看/查看?我试图使用 mvn依赖:树 - 混合 没有成功(请参阅依赖关系,但不是这个) – Tatiana

+0

这听起来你是从你正在使用的一些父母继承这.. ..? – khmarbaise

回答

0

如果依赖已经存在与树的更高的版本,那么所有JRuby的完整的依赖性在树深度较浅上市,因为依赖关系树的魔力梅干较低水平的相关性。

您可以使用mvn dependency:tree -Dverbose=true来显示省略的依赖关系。

+0

不,我仍然看不到maven-site-plugin那里.. – Tatiana