Skip to content

Commit ee70dc7

Browse files
committed
That's the right plugin
1 parent 8678753 commit ee70dc7

File tree

2 files changed

+28
-29
lines changed

2 files changed

+28
-29
lines changed

pom.xml

+25-27
Original file line numberDiff line numberDiff line change
@@ -151,36 +151,34 @@
151151
<finalName>blogapp</finalName>
152152
<plugins>
153153
<plugin>
154-
<groupId>org.codehaus.mojo</groupId>
155-
<artifactId>hibernate3-maven-plugin</artifactId>
156-
<version>2.2</version>
154+
<artifactId>maven-compiler-plugin</artifactId>
155+
<version>2.3.2</version>
156+
<configuration>
157+
<source>1.6</source>
158+
<target>1.6</target>
159+
<compilerArgument>-proc:none</compilerArgument>
160+
</configuration>
161+
</plugin>
162+
<plugin>
163+
<groupId>org.bsc.maven</groupId>
164+
<artifactId>maven-processor-plugin</artifactId>
165+
<version>2.0.5</version>
157166
<executions>
158-
<execution>
159-
<phase>generate-sources</phase>
160-
<goals>
161-
<goal>hbm2java</goal>
162-
</goals>
163-
<inherited>false</inherited>
164-
<configuration>
165-
<components>
166-
<component>
167-
<name>hbm2ddl</name>
168-
<implementation>annotationconfiguration</implementation>
169-
</component>
170-
</components>
171-
<componentProperties>
172-
<export>true</export>
173-
<jdk5>true</jdk5>
174-
<drop>true</drop>
175-
<create>true</create>
176-
<haltonerror>false</haltonerror>
177-
<autocommit>false</autocommit>
178-
<format>true</format>
179-
</componentProperties>
180-
</configuration>
167+
<execution>
168+
<goals>
169+
<goal>process</goal>
170+
</goals>
171+
<phase>process-sources</phase>
181172
</execution>
182173
</executions>
183-
174+
<dependencies>
175+
<dependency>
176+
<groupId>org.hibernate</groupId>
177+
<artifactId>hibernate-jpamodelgen</artifactId>
178+
<version>1.1.1.Final</version>
179+
<scope>compile</scope>
180+
</dependency>
181+
</dependencies>
184182
</plugin>
185183
</plugins>
186184
</build>
+3-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
22
<persistence xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3-
version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
3+
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd"
4+
version="2.0">
45
<persistence-unit name="blogapp">
56
<class>com.goeswhere.frameworkgame.blogapp.domain.Post</class>
67
<class>com.goeswhere.frameworkgame.blogapp.domain.Comment</class>
78
<class>com.goeswhere.frameworkgame.blogapp.domain.Category</class>
89
</persistence-unit>
9-
</persistence>
10+
</persistence>

0 commit comments

Comments
 (0)