79 lines
2.2 KiB
XML
79 lines
2.2 KiB
XML
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<parent>
|
|
<groupId>net.locusworks</groupId>
|
|
<artifactId>portal</artifactId>
|
|
<version>1.0.0-RELEASE</version>
|
|
</parent>
|
|
|
|
<artifactId>portal_migration</artifactId>
|
|
<name>Portal Database Migration</name>
|
|
<description>Migration handler</description>
|
|
<packaging>jar</packaging>
|
|
|
|
<properties>
|
|
<main.basedir>${project.parent.basedir}</main.basedir>
|
|
<database.driver>com.mysql.cj.jdbc.Driver</database.driver>
|
|
</properties>
|
|
|
|
<reporting>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.codehaus.mojo</groupId>
|
|
<artifactId>findbugs-maven-plugin</artifactId>
|
|
<version>${findbugs.version}</version>
|
|
<configuration>
|
|
<xmlOutput>true</xmlOutput>
|
|
<xmlOutputDirectory>target/site/${project.artifactId}</xmlOutputDirectory>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</reporting>
|
|
|
|
<build>
|
|
<pluginManagement>
|
|
<plugins>
|
|
<!-- executing Flyway migration in the "process-sources" phase -->
|
|
<plugin>
|
|
<groupId>org.flywaydb</groupId>
|
|
<artifactId>flyway-maven-plugin</artifactId>
|
|
<configuration>
|
|
<outOfOrder>false</outOfOrder>
|
|
<skip>false</skip>
|
|
<schemas>
|
|
<schema> portal </schema>
|
|
</schemas>
|
|
<table> _flyway_migration </table>
|
|
<locations>
|
|
<location>
|
|
filesystem:${basedir}/../portal_database/src/main/resources/database/migration
|
|
</location>
|
|
</locations>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<phase>process-sources</phase>
|
|
<goals>
|
|
<goal>migrate</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
</plugins>
|
|
</pluginManagement>
|
|
</build>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>net.locusworks</groupId>
|
|
<artifactId>portal_database</artifactId>
|
|
<version>${current.version}</version>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>net.locusworks</groupId>
|
|
<artifactId>portal_common</artifactId>
|
|
<version>${current.version}</version>
|
|
</dependency>
|
|
</dependencies>
|
|
</project> |