Advertisement
Guest User

Untitled

a guest
Mar 18th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. <profile>
  2. <id>liquibase-executions</id>
  3. <build>
  4. <defaultGoal>process-resources</defaultGoal>
  5. <plugins>
  6. <plugin>
  7. <groupId>org.liquibase</groupId>
  8. <artifactId>liquibase-maven-plugin</artifactId>
  9. <version>3.4.2</version>
  10. <dependencies>
  11. <dependency>
  12. <groupId>org.postgresql</groupId>
  13. <artifactId>postgresql</artifactId>
  14. <version>${postgres.version}</version>
  15. </dependency>
  16. </dependencies>
  17. <executions>
  18. <execution>
  19. <id>update-schema</id>
  20. <phase>process-resources</phase>
  21. <goals>
  22. <goal>update</goal>
  23. <!--<goal>clearCheckSums</goal>-->
  24. </goals>
  25. <configuration>
  26. <driver>org.postgresql.Driver</driver>
  27. <url>jdbc:postgresql://${db.url}</url>
  28. <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
  29. <changeLogFile>${basedir}/src/main/resources/liquibase.sql</changeLogFile>
  30. </configuration>
  31. </execution>
  32. <execution>
  33. <id>update-data</id>
  34. <phase>process-resources</phase>
  35. <goals>
  36. <goal>update</goal>
  37. <!--<goal>clearCheckSums</goal>-->
  38. </goals>
  39. <configuration>
  40. <driver>org.postgresql.Driver</driver>
  41. <url>jdbc:postgresql://${db.url}</url>
  42. <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
  43. <changeLogFile>${basedir}/src/main/resources/liquibase-populate.sql</changeLogFile>
  44. </configuration>
  45. </execution>
  46. </executions>
  47. </plugin>
  48. </plugins>
  49. </build>
  50. </profile>
  51.  
  52. 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