This will set the path inside the jar to which this resources are copied to.
Ex:
If classes will ensure that resource files from src/main/environments are copied into classes directory in each jar.
<plugin> <groupId>net.sf.environments-maven-plugin</groupId> <artifactId>environments-maven-plugin</artifactId> <version>1.1.0-SNAPSHOT</version> <configuration> <targetPath>some/where/inside</targetPath> <commonDir>common</commonDir> <filters> <filter>first.properties</filter> </filters> </configuration> <executions> <execution> <goals> <goal>environment</goal> </goals> </execution> </executions> </plugin>