Adding LiquiBase plugin depedency and basic configuration.
FEA: ItEr64S07DatabaseUpgrade
This commit is contained in:
parent
d32cc1f7c2
commit
8e11d6d893
5 changed files with 88 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
10
navalplanner-business/src/main/resources/db.changelog.xml
Normal file
10
navalplanner-business/src/main/resources/db.changelog.xml
Normal 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>
|
||||
|
|
@ -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
20
pom.xml
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue