Look at maven profiles Jeff
Le samedi 14 avril 2012, wzhao6898 a écrit : > 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: [email protected] <javascript:;> > For additional commands, e-mail: [email protected]<javascript:;> > > -- Jeff MAURY "Legacy code" often differs from its suggested alternative by actually working and scaling. - Bjarne Stroustrup http://www.jeffmaury.com http://riadiscuss.jeffmaury.com http://www.twitter.com/jeffmaury
