Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // configured plugins in pom.xml
- <plugin>
- <groupId>org.liquibase</groupId>
- <artifactId>liquibase-maven-plugin</artifactId>
- <version>3.4.2</version>
- <configuration>
- <promptOnNonLocalDatabase>false</promptOnNonLocalDatabase>
- <defaultSchemaName>MYSCHEMA</defaultSchemaName>
- <propertyFile>src/main/resources/my/test/db/liquibase.properties</propertyFile>
- </configuration>
- <executions>
- <execution>
- <phase>initialize</phase>
- <goals>
- <goal>update</goal>
- </goals>
- </execution>
- </executions>
- </plugin>
- <plugin>
- <groupId>com.mysema.querydsl</groupId>
- <artifactId>querydsl-maven-plugin</artifactId>
- <version>3.7.4</version>
- <executions>
- <execution>
- <goals>
- <goal>export</goal>
- </goals>
- </execution>
- </executions>
- <configuration>
- <jdbcDriver>org.h2.Driver</jdbcDriver>
- <jdbcUrl>jdbc:h2:${project.basedir}/target/tl_tables;AUTO_SERVER=TRUE</jdbcUrl>
- <packageName>my.test.db</packageName>
- <tableNamePattern>TABELE1,TABLE2<!--your tables here--></tableNamePattern>
- <targetFolder>${project.basedir}/target/generated-sources/java</targetFolder>
- </configuration>
- <dependencies>
- <dependency>
- <groupId>com.h2database</groupId>
- <artifactId>h2</artifactId>
- <version>1.4.196</version>
- </dependency>
- </dependencies>
- </plugin>
- // liquibase.propertes file
- changeLogFile=my/test/db/master.changelog.xml
- url=jdbc:h2:./target/tl_tables;AUTO_SERVER=TRUE;LOCK_MODE=3;MVCC=true;DB_CLOSE_DELAY=-1
- driver=org.h2.Driver
Add Comment
Please, Sign In to add comment