Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <profile>
- <id>liquibase-executions</id>
- <build>
- <defaultGoal>process-resources</defaultGoal>
- <plugins>
- <plugin>
- <groupId>org.liquibase</groupId>
- <artifactId>liquibase-maven-plugin</artifactId>
- <version>3.4.2</version>
- <dependencies>
- <dependency>
- <groupId>org.postgresql</groupId>
- <artifactId>postgresql</artifactId>
- <version>${postgres.version}</version>
- </dependency>
- </dependencies>
- <executions>
- <execution>
- <id>update-schema</id>
- <phase>process-resources</phase>
- <goals>
- <goal>update</goal>
- <!--<goal>clearCheckSums</goal>-->
- </goals>
- <configuration>
- <driver>org.postgresql.Driver</driver>
- <url>jdbc:postgresql://${db.url}</url>
- <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
- <changeLogFile>${basedir}/src/main/resources/liquibase.sql</changeLogFile>
- </configuration>
- </execution>
- <execution>
- <id>update-data</id>
- <phase>process-resources</phase>
- <goals>
- <goal>update</goal>
- <!--<goal>clearCheckSums</goal>-->
- </goals>
- <configuration>
- <driver>org.postgresql.Driver</driver>
- <url>jdbc:postgresql://${db.url}</url>
- <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
- <changeLogFile>${basedir}/src/main/resources/liquibase-populate.sql</changeLogFile>
- </configuration>
- </execution>
- </executions>
- </plugin>
- </plugins>
- </build>
- </profile>
- mvn process-resources -Pliquibase-executions -Ddb.url=POSTGRES_IP:5432/POSTGRES_DB -Dliquibase.username=POSTGRES_USERNAME
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement