2012-02-13 71 views

回答

5

您應該使用鏈接列出的確切插件依賴關係:dependencies plugin

特別是它的analyze-report插件。

在其原始的形式,你會:

1)添加到您的項目:

<plugin> 
    <groupId>org.apache.maven.plugins</groupId> 
    <artifactId>maven-dependency-plugin</artifactId> 
    <version>2.4</version> 
    <executions> 
     <execution> 
      <id>copy</id> 
      <phase>package</phase> 
     </execution> 
    </executions> 
</plugin> 

2)運行此命令:mvn dependency:analyze-report

生成的報表dependency-analysis.html將位於target夾。

或運行mvn site以獲得完整的網站。

+2

任何將多個模塊項目中的這些報告合併在一起的方法? – HDave 2013-06-04 22:41:58

+1

'dependency:analyze-report'只會在沒有授權信息的情況下生成相關性報告。回答http://stackoverflow.com/a/9261978/418439會做。 – 2015-06-17 05:28:26

相關問題