<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>org.test.liquibase</groupId>
    <artifactId>neo4j.build</artifactId>
    <version>0.1</version>
    <build>
        <resources>
            <resource>
                <directory>/src/db/build/changelog/dml</directory>
            </resource>
        </resources>
        <plugins>
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>properties-maven-plugin</artifactId>
              <version>1.0-alpha-2</version>
              <executions>
                <execution>
                  <phase>initialize</phase>
                  <goals>
                    <goal>read-project-properties</goal>
                  </goals>
                  <configuration>
                    <files>
                      <file>db.properties</file>
                    </files>
                  </configuration>
                </execution>
              </executions>
            </plugin>
            <plugin>
                <groupId>org.liquigraph</groupId>
                <artifactId>liquigraph-maven-plugin</artifactId>
                <version>3.1.0</version>
                <dependencies>
                    <dependency>
                        <groupId>org.liquigraph</groupId>
                        <artifactId>liquigraph-core</artifactId>
                        <version>3.1.0</version>
                        <exclusions>
                            <exclusion>
                                <groupId>org.neo4j</groupId>
                                <artifactId>neo4j-jdbc-driver</artifactId>
                            </exclusion>
                        </exclusions>
                    </dependency>
                    <dependency>
                        <groupId>org.neo4j</groupId>
                        <artifactId>neo4j-jdbc-driver</artifactId>
                        <version>3.3.1</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <changelog>${changeLogFile}</changelog>
                    <jdbcUri>jdbc:neo4j:bolt+routing://${targetdbhost}:${targetdbport}</jdbcUri>
                    <username>${username}</username>
                    <password>${password}</password>
                </configuration>
                <executions>
                    <execution>
                      <phase>package</phase>
                      <id>run-migrations</id>
                      <goals>
                        <goal>run</goal>
                      </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
