Common Dir

A common dir can be declared using commonDir plugin configuration attribute. Any files inside this directory will be included in all the wars. This has the same effect as putting the files in src/main/resources. But this configuration attribute is specifically created to facilitate environment specific filtering. So, to avoid confusion use commonDir only when you need environment specific filtering.

	<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>