How to configure Liquibase plugin
with Maven project
for the two DB
(MySQL
, PostgreSQL
)?
I configured liquibase
only MySQL DB
. Also need for PostgreSQL DB
.
Properties for PostgreSQL DB
:
driverClassName = org.postgresql.Driver
url = jdbc:postgresql://localhost:5432/postgresql_db
username = postgres
password = root
pom.xml
:<build><plugins> <plugin> <groupId>org.liquibase</groupId> <artifactId>liquibase-maven-plugin</artifactId> <version>3.4.1</version> <configuration> <changeLogFile>src/main/resources/dbliquibase/dbchangelog.xml</changeLogFile> <driver>com.mysql.jdbc.Driver</driver> <url>jdbc:mysql://localhost:3306/mysql_db</url> <username>root</username> <password>root</password> <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase> </configuration> </plugin> </plugins></build>