Reputation: 96451
The following currently takes my dependencies and places them into newly created lib directory.
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
Question: How can i change that to exclude 1 file?
The following does not work:
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<scope>runtime</scope>
<excludes>
<exclude>my_program-0.0.1-SNAPSHOT.jar</exclude>
</excludes>
</dependencySet>
</dependencySets>
Upvotes: 0
Views: 125
Reputation: 4040
Try to use the convention:
<exclude>groupId:artifactId</exclude>
So if you had for example:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>3.0.5.RELEASE</version>
</dependency>
To exclude it:
<exclude>org.springframework:spring-jdbc</exclude>
Upvotes: 1