Created
October 18, 2012 13:20
-
-
Save wombat/3911776 to your computer and use it in GitHub Desktop.
JPA Modelgen
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<plugin> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<version>2.3.2</version> | |
<configuration> | |
<source>1.6</source> | |
<target>1.6</target> | |
<encoding>UTF-8</encoding> | |
<compilerArgument>-proc:none</compilerArgument> | |
</configuration> | |
</plugin> | |
<plugin> | |
<groupId>org.bsc.maven</groupId> | |
<artifactId>maven-processor-plugin</artifactId> | |
<version>2.0.7</version> | |
<executions> | |
<execution> | |
<id>process</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>process</goal> | |
</goals> | |
<configuration> | |
<outputDirectory>target/metamodel</outputDirectory> | |
</configuration> | |
</execution> | |
</executions> | |
<dependencies> | |
<dependency> | |
<groupId>org.hibernate</groupId> | |
<artifactId>hibernate-jpamodelgen</artifactId> | |
<version>1.2.0.Final</version> | |
</dependency> | |
</dependencies> | |
</plugin> | |
<plugin> | |
<groupId>org.codehaus.mojo</groupId> | |
<artifactId>build-helper-maven-plugin</artifactId> | |
<version>1.7</version> | |
<executions> | |
<execution> | |
<id>add-source</id> | |
<phase>generate-sources</phase> | |
<goals> | |
<goal>add-source</goal> | |
</goals> | |
<configuration> | |
<sources> | |
<source>target/metamodel</source> | |
</sources> | |
</configuration> | |
</execution> | |
</executions> | |
</plugin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment