Skip to content

Instantly share code, notes, and snippets.

@Ameausoone
Created February 5, 2013 14:55
Show Gist options
  • Save Ameausoone/4714942 to your computer and use it in GitHub Desktop.
Save Ameausoone/4714942 to your computer and use it in GitHub Desktop.
<profile>
<id>init-db</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>sql-maven-plugin</artifactId>
<version>1.5</version>
<dependencies>
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<version>1.3.160</version>
</dependency>
</dependencies>
<executions>
<execution>
<goals>
<goal>execute</goal>
</goals>
<phase>process-resources</phase>
</execution>
</executions>
<configuration>
<driver>org.h2.Driver</driver>
<url>jdbc:h2:tcp://localhost/bdd;MODE=MySQL</url>
<username>sa</username>
<password />
<autocommit>true</autocommit>
<srcFiles>
<srcFile>src/main/local/sql/dev-schema.sql</srcFile>
</srcFiles>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment