Added tutorials of the hibernate-release 5.2.18.Final
[hibernate4-maven-plugin] / src / it / tutorials-4.3.9 / osgi / unmanaged-jpa / pom.xml
diff --git a/src/it/tutorials-4.3.9/osgi/unmanaged-jpa/pom.xml b/src/it/tutorials-4.3.9/osgi/unmanaged-jpa/pom.xml
new file mode 100644 (file)
index 0000000..c4c7cd0
--- /dev/null
@@ -0,0 +1,94 @@
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+       xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+       <modelVersion>4.0.0</modelVersion>
+       <groupId>org.hibernate.osgi</groupId>
+       <artifactId>unmanaged-jpa</artifactId>
+       <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>hibernate-jpa-2.1-api</artifactId>
+            <version>1.0.0.Final</version>
+        </dependency>
+               <dependency>
+                       <groupId>org.osgi</groupId>
+                       <artifactId>org.osgi.core</artifactId>
+                       <version>4.3.1</version>
+               </dependency>
+        <dependency>
+            <groupId>org.osgi</groupId>
+            <artifactId>org.osgi.enterprise</artifactId>
+            <version>4.2.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.karaf.shell</groupId>
+            <artifactId>org.apache.karaf.shell.console</artifactId>
+            <version>2.3.0</version>
+        </dependency>
+        <dependency>
+            <groupId>org.hibernate</groupId>
+            <artifactId>hibernate-entitymanager</artifactId>
+            <version>4.3.9.Final</version>
+        </dependency>
+               <dependency>
+                       <groupId>com.h2database</groupId>
+                       <artifactId>h2</artifactId>
+                       <version>1.4.187</version>
+               </dependency>
+        
+       </dependencies>
+
+       <build>
+               <plugins>
+                       <plugin>
+                               <groupId>org.apache.felix</groupId>
+                               <artifactId>maven-bundle-plugin</artifactId>
+                               <extensions>true</extensions>
+                               <configuration>
+                                       <instructions>
+                                               <Bundle-SymbolicName>org.hibernate.osgi.unmanaged-jpa</Bundle-SymbolicName>
+                                               <Bundle-Name>unmanaged-jpa</Bundle-Name>
+                                               <Bundle-Version>1.0.0</Bundle-Version>
+                                               <Export-Package>
+                                                   org.hibernate.osgitest,
+                                                       org.hibernate.osgitest.entity
+                                               </Export-Package>
+                                               <Import-Package>
+                                                   org.apache.felix.service.command,
+                            org.apache.felix.gogo.commands,
+                            org.apache.karaf.shell.console,
+                            org.apache.karaf.shell.commands,
+                            org.h2,
+                            javax.persistence;version="[1.0.0,2.1.0]",
+                            <!-- Needed for proxying's Javassist enhancement during runtime -->
+                            org.hibernate.proxy,
+                            javassist.util.proxy,
+                            * 
+                                               </Import-Package>
+                                       </instructions>
+                               </configuration>
+                       </plugin>
+                       <plugin>
+                               <groupId>de.juplo</groupId>
+                               <artifactId>hibernate-maven-plugin</artifactId>
+                               <version>${h4mp.version}</version>
+                               <configuration>
+                                       <format>true</format>
+                               </configuration>
+                               <executions>
+                                       <execution>
+                                               <goals>
+                                                       <goal>create</goal>
+                                               </goals>
+                                       </execution>
+                               </executions>
+                       </plugin>
+               </plugins>
+       </build>
+</project>