In my pom.xml, i used maven-war plugin to package different war files and properties-maven-plugin to read the properties file.
<plugin>
<artifactId>maven-war-plugin</artifactId>
<executions>
<execution>
<id>package-war1</id>
<phase>package</phase>
<goals>
<goal>war</goal>
</goals>
<configuration>
.........
</configuration>
</execution>
<execution>
<id>package-war2</id>
<phase>package</phase>
<goals>
<goal>war</goal>
</goals>
<configuration>
.......
</configuration>
</execution>
</plugin>
How can i disable the process of package-war1 or war2 by using properties file. Ex: I would like to create variables in properties file likes: package-war1=true package-war2=false. then only the process of packaging war1 will be run. The process of packaging war2 will not be run temporarily.