Skip to content

Instantly share code, notes, and snippets.

@rufer7
Created April 18, 2015 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rufer7/6fa60555ce53ddaa0e9c to your computer and use it in GitHub Desktop.
Save rufer7/6fa60555ce53ddaa0e9c to your computer and use it in GitHub Desktop.
maven pom.xml-file of flyway-example
<?xml version="1.0" encoding="UTF-8"?>
<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>
<groupId>be.rufer.playground</groupId>
<artifactId>flyway-example</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>Flyway example</name>
<description>An example usage of flyway in maven projects.</description>
<url>https://github.com/rufer7/flyway-example</url>
<inceptionYear>2015</inceptionYear>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
<developers>
<developer>
<name>Marc Rufer</name>
<email>m.rufer at gmx.ch</email>
<organizationUrl>https://github.com/rufer7</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:https://github.com/rufer7/flyway-example</connection>
<developerConnection>scm:git:https://github.com/rufer7/flyway-example</developerConnection>
<url>https://github.com/rufer7/flyway-example</url>
<tag>HEAD</tag>
</scm>
<properties>
<!-- use UTF-8 for everything -->
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<h2database.version>1.3.170</h2database.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-maven-plugin</artifactId>
<version>3.2.1</version>
<configuration>
<url>jdbc:h2:file:target/sampleDB</url>
<user>sa</user>
<sqlMigrationPrefix>v</sqlMigrationPrefix>
</configuration>
<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>${h2database.version}</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>migrate</goal>
<goal>info</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment