以下內容現在將我的依賴項放入新創建的lib目錄中。關於mvn彙編
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
問題:如何更改排除1個文件?
下不起作用:如果你有例如
<exclude>groupId:artifactId</exclude>
所以:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>3.0.5.RELEASE</version>
</dependency>
要排除:
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<scope>runtime</scope>
<excludes>
<exclude>my_program-0.0.1-SNAPSHOT.jar</exclude>
</excludes>
</dependencySet>
</dependencySets>
http://maven.apache.org/plugins/maven-assembly-plugin/examples/single/including-and-excluding-artifacts.html – 2012-04-26 13:27:58