-1
我的項目目前都使用Ant構建,構建SQL我用下面的目標:配置Maven任務段在POM文件
<target name="build.update_database">
<artifact:mvn pom="${basedir}/../module-database/pom.xml">
<arg value="clean"/>
<arg value="compile"/>
<arg value="liquibase:updateSQL"/>
</artifact:mvn>
</target>
現在,我想搬到Maven的,我怎麼能配置步驟「乾淨」, 'compile','liquibase:updateSQL'在pom.xml中。
的pom.xml的是:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<source>1.7</source>
<target>1.7</target>
<debug>true</debug>
<encoding>UTF-8</encoding>
<optimize>true</optimize>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
</configuration>
</plugin>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>2.0.5</version>
<configuration>
<promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
<propertyFile>src/main/resources/liquibase.properties</propertyFile>
<verbose>true</verbose>
</configuration>
</plugin>
</plugins>
</build>