Upgraded source/target version of Java from 1.6 to 1.8
[hibernate4-maven-plugin] / src / it / tutorials / osgi / unmanaged-jpa / pom.xml
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4         <groupId>org.hibernate.osgi</groupId>
5         <artifactId>unmanaged-jpa</artifactId>
6         <version>1.0.0</version>
7     <packaging>bundle</packaging>
8
9         <properties>
10                 <h4mp.version>@project.version@</h4mp.version>
11         </properties>
12
13         <dependencies>
14                 <dependency>
15             <groupId>org.hibernate.javax.persistence</groupId>
16             <artifactId>hibernate-jpa-2.1-api</artifactId>
17             <version>1.0.0.Final</version>
18         </dependency>
19                 <dependency>
20                         <groupId>org.osgi</groupId>
21                         <artifactId>org.osgi.core</artifactId>
22                         <version>4.3.1</version>
23                 </dependency>
24         <dependency>
25             <groupId>org.osgi</groupId>
26             <artifactId>org.osgi.enterprise</artifactId>
27             <version>4.2.0</version>
28         </dependency>
29         <dependency>
30             <groupId>org.apache.karaf.shell</groupId>
31             <artifactId>org.apache.karaf.shell.console</artifactId>
32             <version>2.3.0</version>
33         </dependency>
34         <dependency>
35             <groupId>org.hibernate</groupId>
36             <artifactId>hibernate-entitymanager</artifactId>
37             <version>4.3.9.Final</version>
38         </dependency>
39                 <dependency>
40                         <groupId>com.h2database</groupId>
41                         <artifactId>h2</artifactId>
42                         <version>1.4.187</version>
43                 </dependency>
44         
45         </dependencies>
46
47         <build>
48                 <plugins>
49                         <plugin>
50                                 <groupId>org.apache.felix</groupId>
51                                 <artifactId>maven-bundle-plugin</artifactId>
52                                 <extensions>true</extensions>
53                                 <configuration>
54                                         <instructions>
55                                                 <Bundle-SymbolicName>org.hibernate.osgi.unmanaged-jpa</Bundle-SymbolicName>
56                                                 <Bundle-Name>unmanaged-jpa</Bundle-Name>
57                                                 <Bundle-Version>1.0.0</Bundle-Version>
58                                                 <Export-Package>
59                                                     org.hibernate.osgitest,
60                                                         org.hibernate.osgitest.entity
61                                                 </Export-Package>
62                                                 <Import-Package>
63                                                     org.apache.felix.service.command,
64                             org.apache.felix.gogo.commands,
65                             org.apache.karaf.shell.console,
66                             org.apache.karaf.shell.commands,
67                             org.h2,
68                             javax.persistence;version="[1.0.0,2.1.0]",
69                             <!-- Needed for proxying's Javassist enhancement during runtime -->
70                             org.hibernate.proxy,
71                             javassist.util.proxy,
72                             * 
73                                                 </Import-Package>
74                                         </instructions>
75                                 </configuration>
76                         </plugin>
77                         <plugin>
78                                 <groupId>de.juplo</groupId>
79                                 <artifactId>hibernate-maven-plugin</artifactId>
80                                 <version>${h4mp.version}</version>
81                                 <configuration>
82                                         <format>true</format>
83                                 </configuration>
84                                 <executions>
85                                         <execution>
86                                                 <goals>
87                                                         <goal>create</goal>
88                                                 </goals>
89                                         </execution>
90                                 </executions>
91                         </plugin>
92                 </plugins>
93         </build>
94 </project>