2012-03-07 35 views
0

假設我有以下的依賴maven戰爭依賴如何實際工作?

<dependency> 
    <groupId>Group</groupId> 
    <artifactId>AID</artifactId> 
    <version>${project.version}</version> 
    <scope>runtime</scope> 
    <type>war</type> 
<exclusions> 
    <exclusion> <!-- declare the exclusion here --> 
     <groupId>sample.ProjectB</groupId> 
     <artifactId>Project-B</artifactId> 
    </exclusion> 
    </exclusions> 
    </dependency> 

看來這個代碼不到風度的工作,因爲我已經在裝箱的WAR文件排除庫。那麼有沒有規範戰爭依賴的工作原理?

+0

當你說'這段代碼不工作'時,你能詳細說明你的意思嗎? – Raghuram 2012-03-07 04:48:26

回答

相關問題