Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 1169

Multiple Configurations in liquibase-maven-plugin

$
0
0
Hi together,

I am trying to configure the maven plugin (3.5.3) to run two different configurations on the same DB (but different user and different changelog).
My current code for a single configuration looks like this:

  1. <plugin>
    <groupId>org.liquibase</groupId>
    <artifactId>liquibase-maven-plugin</artifactId>
    <version>3.5.3</version>
    <configuration>
    <changeLogFile>
    ${basedir}/src/main/resources/db/changelog_1.xml
    </changeLogFile>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    <url>jdbc:oracle:thin:@localhost:1521:xe</url>
    <username>USER</username>
    <password>PASSWORD</password>
    </configuration>
    <dependencies>
    <dependency>
    <groupId>com.oracle</groupId>
    <artifactId>ojdbc7</artifactId>
    <version>12.1.0.2.0</version>
    </dependency>
    </dependencies>
    </plugin>
I read several times about executions with different configurations. But when I try to put a configuration inside an execution I get an error and liquibase won´t find it. The goal is to include a new configuration for "USER2" with "PASSWORD2" and "changelog_2.xml"
Any suggestions?

Thanks in advance :)


Viewing all articles
Browse latest Browse all 1169

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>