WIP:site
[hibernate4-maven-plugin] / src / it / tutorials-5.0.12 / osgi / managed-jpa / pom.xml
1 <!--
2   ~ Hibernate, Relational Persistence for Idiomatic Java
3   ~
4   ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
5   ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
6   -->
7 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
8          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
9   <modelVersion>4.0.0</modelVersion>
10   <groupId>org.hibernate.osgi</groupId>
11   <artifactId>managed-jpa</artifactId>
12   <version>1.0.0</version>
13   <packaging>bundle</packaging>
14
15   <properties>
16     <hibernate-maven-plugin.version>@project.version@</hibernate-maven-plugin.version>
17   </properties>
18
19   <dependencies>
20     <dependency>
21       <groupId>org.hibernate.javax.persistence</groupId>
22       <artifactId>hibernate-jpa-2.1-api</artifactId>
23       <version>1.0.0.Final</version>
24     </dependency>
25     <dependency>
26       <groupId>org.osgi</groupId>
27       <artifactId>org.osgi.core</artifactId>
28       <version>4.3.1</version>
29     </dependency>
30     <dependency>
31       <groupId>org.osgi</groupId>
32       <artifactId>org.osgi.enterprise</artifactId>
33       <version>4.2.0</version>
34     </dependency>
35     <dependency>
36       <groupId>org.apache.karaf.shell</groupId>
37       <artifactId>org.apache.karaf.shell.console</artifactId>
38       <version>2.3.0</version>
39     </dependency>
40   </dependencies>
41
42   <build>
43     <plugins>
44       <plugin>
45         <groupId>org.apache.felix</groupId>
46         <artifactId>maven-bundle-plugin</artifactId>
47         <extensions>true</extensions>
48         <configuration>
49           <instructions>
50             <Bundle-SymbolicName>org.hibernate.osgi.managed-jpa</Bundle-SymbolicName>
51             <Bundle-Name>managed-jpa</Bundle-Name>
52             <Bundle-Version>1.0.0</Bundle-Version>
53             <Export-Package>
54               org.hibernate.osgitest,
55               org.hibernate.osgitest.entity
56             </Export-Package>
57             <Import-Package>
58               org.apache.felix.service.command,
59               org.apache.felix.gogo.commands,
60               org.apache.karaf.shell.console,
61               org.apache.karaf.shell.commands,
62               javax.persistence;version="[1.0.0,2.1.0]",
63               <!-- Needed for proxying's Javassist enhancement during runtime -->
64               org.hibernate.proxy,
65               javassist.util.proxy,
66               *
67             </Import-Package>
68             <Meta-Persistence>META-INF/persistence.xml</Meta-Persistence>
69           </instructions>
70         </configuration>
71       </plugin>
72       <plugin>
73         <groupId>de.juplo</groupId>
74         <artifactId>hibernate-maven-plugin</artifactId>
75         <version>${hibernate-maven-plugin.version}</version>
76         <executions>
77           <execution>
78             <goals>
79               <goal>create</goal>
80             </goals>
81           </execution>
82         </executions>
83         <configuration>
84           <url>jdbc:h2:mem:db_managed_jpa;MVCC=TRUE</url>
85           <format>true</format>
86           <execute>false</execute>
87         </configuration>
88       </plugin>
89     </plugins>
90   </build>
91 </project>