Guest User

Untitled

a guest
Feb 27th, 2018
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.65 KB | None | 0 0
  1. // configured plugins in pom.xml
  2. <plugin>
  3. <groupId>org.liquibase</groupId>
  4. <artifactId>liquibase-maven-plugin</artifactId>
  5. <version>3.4.2</version>
  6. <configuration>
  7. <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
  8. <defaultSchemaName>MYSCHEMA</defaultSchemaName>
  9. <propertyFile>src/main/resources/my/test/db/liquibase.properties</propertyFile>
  10. </configuration>
  11. <executions>
  12. <execution>
  13. <phase>initialize</phase>
  14. <goals>
  15. <goal>update</goal>
  16. </goals>
  17. </execution>
  18. </executions>
  19. </plugin>
  20. <plugin>
  21. <groupId>com.mysema.querydsl</groupId>
  22. <artifactId>querydsl-maven-plugin</artifactId>
  23. <version>3.7.4</version>
  24. <executions>
  25. <execution>
  26. <goals>
  27. <goal>export</goal>
  28. </goals>
  29. </execution>
  30. </executions>
  31. <configuration>
  32. <jdbcDriver>org.h2.Driver</jdbcDriver>
  33. <jdbcUrl>jdbc:h2:${project.basedir}/target/tl_tables;AUTO_SERVER=TRUE</jdbcUrl>
  34. <packageName>my.test.db</packageName>
  35. <tableNamePattern>TABELE1,TABLE2<!--your tables here--></tableNamePattern>
  36. <targetFolder>${project.basedir}/target/generated-sources/java</targetFolder>
  37. </configuration>
  38. <dependencies>
  39. <dependency>
  40. <groupId>com.h2database</groupId>
  41. <artifactId>h2</artifactId>
  42. <version>1.4.196</version>
  43. </dependency>
  44. </dependencies>
  45. </plugin>
  46.  
  47. // liquibase.propertes file
  48. changeLogFile=my/test/db/master.changelog.xml
  49. url=jdbc:h2:./target/tl_tables;AUTO_SERVER=TRUE;LOCK_MODE=3;MVCC=true;DB_CLOSE_DELAY=-1
  50. driver=org.h2.Driver
Add Comment
Please, Sign In to add comment