I don't know why but maven-war-plugin
stopped moving my files to WEB-INF/config
. This is how I am using the plugin:
<profiles>
<profile>
<id>default-profile</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.6</version>
<configuration>
<webResources>
<resource>
<directory>${basedir}/src/main/assembly/${package-mode}/config</directory>
<filtering>true</filtering>
<targetPath>WEB-INF/config</targetPath>
</resource>
</webResources>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
</profile>
</profiles>
Question: What could I possible have done to break this again? It finally worked, now it doesn't anymore.
This is how I run my server:
mvn tomcat7:run-war -Denv=dev -Dpackage-mode=dev -DskipTests
The WAR file gets build and packed but those files from src/main/assembly/dev/config
are simply not there.