mojohaus / sql-maven-plugin

SQL Maven Plugin
https://www.mojohaus.org/sql-maven-plugin/
Apache License 2.0
25 stars 29 forks source link

skip an execution for sql-maven-plugin conditionally #18

Open mr-samarjit-adhikari opened 7 years ago

mr-samarjit-adhikari commented 7 years ago

Hello All,

I have following pom. If "skip" property is made true in each execution tag , it does not seems to be worked, where as if it is made in top level tags, it is working to skip all executions tags. My requirement is to skip each execution tag conditionally which will be passed as environment variable. Such behavior looks to be a defect. Could you please confirm ?

org.codehaus.mojo sql-maven-plugin 1.6 com.oracle ojdbc6 ${oracle.version} postgresql postgresql ${postgresql.version} run command for oracle pre-integration-test execute true xyz xyz abcd oracle.jdbc.driver.OracleDriver true ... continue run command for postgres pre-integration-test execute true xyz xyz abcd org.postgresql.Driver true ... continue

With regards, Samarjit

khmarbaise commented 7 years ago

Do you have a full working example which shows what might wrong or not...?