Skip to content

Latest commit

 

History

History
executable file
·
34 lines (21 loc) · 991 Bytes

README.md

File metadata and controls

executable file
·
34 lines (21 loc) · 991 Bytes

Liqui-Base

Description

This maven archetype provides basic setup for liquibase-maven-plugin.

Usage

Installation and initialization

  1. Clone this repo

  2. Install maven archetype (run mvn install in root of cloned repo)

  3. Cd to path where you want create maven project

  4. 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

  5. Setup JDBC connector dependency in pom.xml

  6. Setup "test" profile file src/main/profiles/test.properties with

     profile...
     profile.username=
     profile.password=
    
  7. Run mvn resources:resources for project initialization

Reconfiguration after profile changed

Run mvn resources:resources

Running migrations

Run mvn liquibase:update

Notes

  • Maven can stuck on "Generating project in Interactive mode" for several seconds.