if condition in pom.xml
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 artifactIdmaven-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
Re: if condition in pom.xml
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 artifactIdmaven-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
Re: if condition in pom.xml
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 artifactIdmaven-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 javascript:; For additional commands, e-mail: users-h...@maven.apache.orgjavascript:; -- 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