Skip to content

Instantly share code, notes, and snippets.

@jogaco
Last active May 21, 2017 18:13
Show Gist options
  • Save jogaco/84e9c457824aeb6e24b7dc661669c850 to your computer and use it in GitHub Desktop.
Save jogaco/84e9c457824aeb6e24b7dc661669c850 to your computer and use it in GitHub Desktop.
Spring Boot Tutorial: adding hibernate-maven-plugin
...
<build>
<plugins>
...
<plugin>
<groupId>de.juplo</groupId>
<artifactId>hibernate-maven-plugin</artifactId>
<version>2.0.0</version>
<executions>
<execution>
<phase>test-compile</phase>
<goals>
<goal>drop</goal>
<goal>create</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>${jdbc.groupId}</groupId>
<artifactId>${jdbc.artifactId}</artifactId>
<version>${jdbc.version}</version>
</dependency>
</dependencies>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>dbunit-maven-plugin</artifactId>
...
</plugin>
</plugins>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<filtering>true</filtering>
</testResource>
</testResources>
<properties>
...
<hibernate.dialect>org.hibernate.dialect.MySQL5InnoDBDialect</hibernate.dialect>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment