You can use profiles and configure the plugin with your values in each profile.
2012/4/14 wzhao6898 <wzhao6...@gmail.com>: > Hi there, > > Is there a way for me configure maven-war-plugin (or any plugin in general) > to execute conditionally? > e.g.: I want to configure to exclude a js directory if property notExclude > set to false, and skip if property notExclude set to true: > > <plugin> > <artifactId>maven-war-plugin</artifactId> > <configuration> > <warSourceExcludes>**/external/dojo/**/*.js</warSourceExcludes> > </configuration> > </plugin> > > Thanks, > > David > > -- > View this message in context: > http://maven.40175.n5.nabble.com/if-condition-in-pom-xml-tp5639737p5639737.html > Sent from the Maven - Users mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@maven.apache.org > For additional commands, e-mail: users-h...@maven.apache.org > -- Olivier Lamy Talend: http://coders.talend.com http://twitter.com/olamy | http://linkedin.com/in/olamy --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org