2015-01-14 83 views
0

我想查看一個mavenplugin的傳遞依賴關係,所以我明確了只有一個插件的項目,並且沒有其他工件依賴關係來查看這個插件依賴關係。所以我寫如何在Maven中顯示插件的依賴關係?

<build> 
     <plugins> 
      <plugin> 
       <groupId>org.apache.cxf</groupId> 
       <artifactId>cxf-xjc-plugin</artifactId> 
       <version>2.6.1</version> 
       <configuration> 
        <extensions> 
         <extension>org.apache.cxf.xjcplugins:cxf-xjc-dv:2.3.0</extension> 
        </extensions> 
       </configuration> 

      </plugin> 

     </plugins> 
</build> 
... 

和運行

 mvn dependency:tree 

,輸出是:

[INFO] Scanning for projects... 
[INFO] 
[INFO] ---------------------------------------------------------------- 
[INFO] Building Sample project 2.0.3-SNAPSHOT 
[INFO] ---------------------------------------------------------------- 
[INFO] 
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ delete --- 
INFO] sample:test:jar:2.0.3-SNAPSHOT 
INFO] ------------------------------------------------------------------------ 
INFO] BUILD SUCCESS 

怎麼看org.apache.cxf依賴關係樹?

回答