我有以下maven插件
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<!-- This puts everything under /WEB-INF/classes into a jar under WEB-INF/lib -->
<archiveClasses>true</archiveClasses>
<webResources>
<resource>
<!-- This contains the configuration files that Iwant to keep separate from the JAR.. from /src/main/resources-->
<directory>src/main/myconfig</directory>
<targetPath>WEB-INF/classes</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
但是我想从
中启用的存档jar文件中排除某些.properties文件<archiveClasses>true</archiveClasses>
所以我想从归档jar中排除属性文件,但不要从war文件中排除(仍然需要在WEB-INF / classes下
如何实现目标?