以下当前将我的依赖项放入新创建的 lib 目录中。
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<scope>runtime</scope>
</dependencySet>
</dependencySets>
问题:如何更改它以排除 1 个文件?
以下不起作用:
<dependencySets>
<dependencySet>
<outputDirectory>lib</outputDirectory>
<scope>runtime</scope>
<excludes>
<exclude>my_program-0.0.1-SNAPSHOT.jar</exclude>
</excludes>
</dependencySet>
</dependencySets>