Normally, my POM file is working fine and all unit tests pass and all artifacts are packaged properly. However, once I've added this maven-resources-plugin to create specific configuration depending upon profile all my tests fail because nothing in 'src/test/resources' is copied to 'test-classes':
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
<configuration>
<overwrite>true</overwrite>
<outputDirectory>${project.build.directory}/${config.dir}/${project.activeProfiles[1].id}</outputDirectory>
<resources>
<filtering>true</filtering>
<resource>
<directory>src/main/resources</directory>
</resource>
</resources>
</configuration>
</plugin>
I don't understand why this would block the copying of test resources. Any ideas?