Hi
I am trying to use Liquibase to extract the changelog from mysql running on my local box, the maven goal runs fine and prints the changelog into console, but does not write it to the file in fact it even does not create one, I am pasintg below my maven pom.xml and properties file,
POM.xml
<?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>LiquibaseDemo</groupId>
<artifactId>LiquibaseDemo</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<!-- Replace with the version of the MySQL driver you want to use -->
<version>6.0.3</version>
</dependency>
<!-- https://mvnrepository.com/artifact/org.liquibase/liquibase-core -->
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>3.5.1</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-maven-plugin</artifactId>
<version>3.0.5</version>
<configuration>
<propertyFile>src/main/resources/liquibase.properties</propertyFile>
</configuration>
<executions>
<execution>
<phase>process-resources</phase>
<goals>
<goal>generateChangeLog</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
properties file
driver: com.mysql.cj.jdbc.Driver
classpath: lib/mysql-connector-java-6.0.3-bin.jar
url:jdbc:mysql://localhost:3306/sakila?nullNamePatternMatchesAll=true
username: root
password: ******
changeLogFile:/src/main/resources/changelog.xml
logLevel: finestThe command that I am using to run is
resources:resources liquibase:generateChangeLog