Adding LiquiBase plugin depedency and basic configuration.

FEA: ItEr64S07DatabaseUpgrade
This commit is contained in:
Manuel Rego Casasnovas 2010-11-24 17:00:07 +01:00
parent d32cc1f7c2
commit 8e11d6d893
5 changed files with 88 additions and 0 deletions

View file

@ -112,5 +112,47 @@
<groupId>net.sf.ehcache</groupId>
<artifactId>ehcache</artifactId>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
</dependency>
</dependencies>
<build>
<!-- Filtering -->
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
</resource>
</resources>
<plugins>
<!-- LiquiBase plugin -->
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>2.0-rc7</version>
<executions>
<execution>
<phase>process-resources</phase>
<configuration>
<propertyFileWillOverride>true</propertyFileWillOverride>
<propertyFile>target/classes/liquibase.properties</propertyFile>
</configuration>
<goals>
<goal>update</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
</databaseChangeLog>

View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
<include file="src/main/resources/db.changelog-initial.xml"/>
</databaseChangeLog>

View file

@ -0,0 +1,8 @@
changeLogFile src/main/resources/db.changelog.xml
driver ${jdbcDriver.className}
url ${dataSource.url}
username ${dataSource.user}
password ${dataSource.password}
verbose true
dropFirst false
promptOnNonLocalDatabase false

20
pom.xml
View file

@ -566,6 +566,17 @@
<artifactId>ehcache</artifactId>
<version>1.6.2</version>
</dependency>
<!-- LiquiBase -->
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>2.0-rc7</version>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>2.0-rc7</version>
</dependency>
</dependencies>
</dependencyManagement>
@ -785,6 +796,15 @@
<maxmem>512M</maxmem>
</configuration>
</plugin>
<!-- =========================================================== -->
<!-- LiquiBase plugin -->
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>2.0-rc7</version>
</plugin>
</plugins>
</build>