Reworked configuration and the tracking thereof
[hibernate4-maven-plugin] / src / it / tutorials / osgi / unmanaged-native / 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-native</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-core</artifactId>
37             <version>4.3.9.Final</version>
38         </dependency>
39         <dependency>
40             <groupId>org.hibernate</groupId>
41             <artifactId>hibernate-envers</artifactId>
42             <version>4.3.9.Final</version>
43         </dependency>
44                 <dependency>
45                         <groupId>com.h2database</groupId>
46                         <artifactId>h2</artifactId>
47                         <version>1.4.187</version>
48                 </dependency>
49         
50         </dependencies>
51
52         <build>
53                 <plugins>
54                         <plugin>
55                                 <groupId>org.apache.felix</groupId>
56                                 <artifactId>maven-bundle-plugin</artifactId>
57                                 <extensions>true</extensions>
58                                 <configuration>
59                                         <instructions>
60                                                 <Bundle-SymbolicName>org.hibernate.osgi.unmanaged-native</Bundle-SymbolicName>
61                                                 <Bundle-Name>unmanaged-native</Bundle-Name>
62                                                 <Bundle-Version>1.0.0</Bundle-Version>
63                                                 <Export-Package>
64                                                     org.hibernate.osgitest,
65                                                         org.hibernate.osgitest.entity
66                                                 </Export-Package>
67                                                 <Import-Package>
68                                                     org.apache.felix.service.command,
69                             org.apache.felix.gogo.commands,
70                             org.apache.karaf.shell.console,
71                             org.apache.karaf.shell.commands,
72                             org.h2,
73                             org.hibernate,
74                             org.hibernate.cfg,
75                             org.hibernate.service,
76                             javax.persistence;version="[1.0.0,2.1.0]",
77                             <!-- Needed for proxying's Javassist enhancement during runtime -->
78                             org.hibernate.proxy,
79                             javassist.util.proxy,
80                             * 
81                                                 </Import-Package>
82                                         </instructions>
83                                 </configuration>
84                         </plugin>
85                         <plugin>
86                                 <groupId>de.juplo</groupId>
87                                 <artifactId>hibernate-maven-plugin</artifactId>
88                                 <version>${h4mp.version}</version>
89                                 <configuration>
90                                         <format>true</format>
91                                 </configuration>
92                                 <executions>
93                                         <execution>
94                                                 <goals>
95                                                         <goal>create</goal>
96                                                 </goals>
97                                         </execution>
98                                 </executions>
99                         </plugin>
100                 </plugins>
101         </build>
102 </project>