我的 EAR 包括 8 个 JAR 文件,它们位于我的 EAR根目录中。我想为我的最终部署 EAR 包删除其中两个。
我正在尝试这样做,因为它在这里描述: https ://maven.apache.org/plugins/maven-ear-plugin/examples/ exclude-files-from-ear.html
但似乎不起作用。
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-ear-plugin</artifactId>
<version>2.6</version>
<configuration>
<packagingExcludes>test1.jar,test2.jar</packagingExcludes>
</configuration>
...
</plugin>