This maven archetype provides basic setup for liquibase-maven-plugin.
-
Clone this repo
-
Install maven archetype (run
mvn install
in root of cloned repo) -
Cd to path where you want create maven project
-
Run
mvn archetype:generate -DarchetypeGroupId=ru.craftcoderr.maven -DarchetypeArtifactId=liqui-base
to generate project from archetype, artifactId would be used for folder name of maven project -
Setup JDBC connector dependency in
pom.xml
-
Setup "test" profile file
src/main/profiles/test.properties
withprofile... profile.username= profile.password=
-
Run
mvn resources:resources
for project initialization
Run mvn resources:resources
Run mvn liquibase:update
- Maven can stuck on "Generating project in Interactive mode" for several seconds.