I can seemed to get the maven plugin to stop executation .
I’m using version 1.9.5
org.liquibase
liquibase-plugin
${liquibase.version}
update
test-compile
update
true
${basedir}/src/main/resources/change_log.xml
${database.driverClassName}
${database.url}
${database.username}
${database.password}
${liquibase.drop}
${maven.test.skip}
whenever I type
mvn clean package -Dmaven.test.skip=true
It still runs the liquibase:update goal.
How do I stop it running this task when I pass the -Dmaven.test.skip=true parameter.
Many Thanks
Found the answer.
Looked into source code.
mvn clean package -Dmaven.test.skip=true -Dliquibase.should.run=false
Do you think that the maven plugin could support the arg?
For example.
org.codehaus.mojo
sql-maven-plugin
1.4
<dependencies>
<!-- specify the dependent JDBC driver here -->
<dependency>
<groupId>net.sourceforge.jtds</groupId>
<artifactId>jtds</artifactId>
<version>1.2.4</version>
</dependency>
</dependencies>
<!-- common configuration shared by all executions -->
<configuration>
<driver>net.sourceforge.jtds.jdbc.Driver</driver>
<url>jdbc:jtds:sqlserver:/localhost:1433;DatabaseName=master</url>
<username>sa</username>
<password>xxxx</password>
<sqlCommand>
<![CDATA[
delete from table1;
]]>
${maven.test.skip}
test
test-compile
execute
arg will bypass running the sql plugin.
It would be good to support, but I’m not a big maven. Do you know how it would be implemented?
Nathan
Looks like this was patched for liquibase 2.0, which as not been released as of this post:
http://liquibase.jira.com/browse/CORE-495