maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hanuman <>
Subject Conditionally executing a script in profile
Date Thu, 24 Jul 2014 17:02:17 GMT
Hi All,

I am trying to execute a particular sql script conditionally in a

Example: assume I had a following profile in a POM.xml
if I run "mvn -Pload-test-data -e
it's executing all scripts mentioned in SrcFiles tag.

But I am trying to execute "script3.sql" only when a particular flag is
passed as 'y'

i.e..,I am looking for a command like
mvn -Pload-test-data -e -Dref_flag='y' 
then only execute script3.sql otherwise not. 

Could you please assist me how we can do that?
Thanks very much for regardin my query.

Profile in my POM.xml::


View this message in context:
Sent from the Maven - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message