Renemed hibernate.schema.export to hibernate.schema.execute
[hibernate4-maven-plugin] / src / it / tutorials / osgi / managed-jpa / pom.xml
old mode 100755 (executable)
new mode 100644 (file)
index 1810286..b1ac0d8
@@ -6,6 +6,10 @@
        <version>1.0.0</version>
     <packaging>bundle</packaging>
 
+       <properties>
+               <h4mp.version>@project.version@</h4mp.version>
+       </properties>
+
        <dependencies>
                <dependency>
                        <groupId>org.hibernate.javax.persistence</groupId>
             <artifactId>org.apache.karaf.shell.console</artifactId>
             <version>2.3.0</version>
         </dependency>
+        <dependency>
+            <groupId>com.h2database</groupId>
+            <artifactId>h2</artifactId>
+            <version>1.4.187</version>
+        </dependency>
        </dependencies>
 
        <build>
                                        </instructions>
                                </configuration>
                        </plugin>
+                       <plugin>
+                               <groupId>de.juplo</groupId>
+                               <artifactId>hibernate-maven-plugin</artifactId>
+                               <version>${h4mp.version}</version>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>create</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                               <configuration>
+                                       <url>jdbc:h2:mem:db1;MVCC=TRUE</url>
+                                       <format>true</format>
+                                       <execute>false</execute>
+                               </configuration>
+                       </plugin>
                </plugins>
        </build>
 </project>