If you like to produce environment agnostic result artifacts you simply configure Environments Maven Plugin like the following (we assume here a war file):
<groupId>groupId</groupId> <artifactId>artifactId</artifactId> <version>0.1-SNAPSHOT</version> <packaging>war</packaging> ... <build> <plugins> <plugin> <groupId>net.sf.environments-maven-plugin</groupId> <artifactId>environments-maven-plugin</artifactId> <version>1.4.0-SNAPSHOT</version> <executions> <execution> <goals> <goal>environment</goal> </goals> </execution> </executions> </plugin> </plugins> </build>
If you like to produce a configuration artifact for each environment you can configure that by adding the MultiEnv Maven Plugin to your pom file like this:
<groupId>groupId</groupId> <artifactId>artifactId</artifactId> <version>0.1-SNAPSHOT</version> <packaging>war</packaging> ... <build> <plugins> <plugin> <groupId>net.sf.environments-maven-plugin</groupId> <artifactId>multienv-maven-plugin</artifactId> <version>1.4.0-SNAPSHOT</version> <executions> <execution> <goals> <goal>configuration</goal> </goals> </execution> </executions> </plugin> </plugins> </build>