<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>neighbouring-rights.build</artifactId>
    <version>0.1</version>
    <build>
        <plugins>
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>properties-maven-plugin</artifactId>
              <version>1.2.1</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.liquibase</groupId>
                <artifactId>liquibase-maven-plugin</artifactId>
                <version>4.29.1</version>
                <dependencies>
                    <dependency>
                        <groupId>org.liquibase</groupId>
                        <artifactId>liquibase-core</artifactId>
                        <version>4.29.1</version>
                    </dependency>
                    <dependency>
                        <groupId>org.liquibase.ext</groupId>
                        <artifactId>liquibase-neo4j</artifactId>
                        <version>4.29.1</version>
                    </dependency>
                    <dependency>
                        <groupId>org.neo4j.driver</groupId>
                        <artifactId>neo4j-java-driver</artifactId>
                        <version>5.23.0</version>
                    </dependency>
                </dependencies>
                <configuration>
                    <changeLogFile>${changeLogFile}</changeLogFile>
                    <url>jdbc:neo4j:neo4j+s://${targetdbhost}:${targetdbport}?database=neo4j</url>
                    <username>${username}</username>
                    <password>${password}</password>
                    <searchPath>build/changelog/ddl,build/changelog/dml</searchPath>
                </configuration>
                <executions>
                    <execution>
                      <phase>package</phase>
                      <id>run-migrations</id>
                      <goals>
                        <goal>update</goal>
                      </goals>
                    </execution>
                </executions>
            </plugin>
        </plugins>
    </build>
</project>
