Configured the 5.0.12-tutorials as integration-test for the plugin
[hibernate4-maven-plugin] / src / it / tutorials-5.0.12 / osgi / managed-jpa / features.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!--
3   ~ Hibernate, Relational Persistence for Idiomatic Java
4   ~
5   ~ License: GNU Lesser General Public License (LGPL), version 2.1 or later.
6   ~ See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
7   -->
8 <features>
9   <feature name="hibernate-test">
10
11     <!-- JTA -->
12     <config name="org.apache.aries.transaction">
13       aries.transaction.recoverable = true
14       aries.transaction.timeout = 600
15       aries.transaction.howl.logFileDir = /tmp/karaf/txlog
16       aries.transaction.howl.maxLogFiles = 2
17       aries.transaction.howl.maxBlocksPerFile = 512
18       aries.transaction.howl.bufferSizeKBytes = 4
19     </config>
20     <bundle dependency="true" start-level="30">mvn:org.apache.geronimo.specs/geronimo-jta_1.1_spec/1.1.1</bundle>
21     <bundle start-level="30">mvn:org.apache.aries.transaction/org.apache.aries.transaction.blueprint/1.0.0</bundle>
22     <bundle start-level="30">mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.0.1</bundle>
23
24     <!-- JPA -->
25     <bundle start-level="30">mvn:org.hibernate.javax.persistence/hibernate-jpa-2.1-api/1.0.0.Final</bundle>
26     <!-- No container currently supports JPA 2.1.  Clone and build Aries from the following fork (upgrades to
27          JPA 2.1).  Aries should be upgrading as soon as the spec is out.
28          https://github.com/brmeyer/aries/tree/jpa21 -->
29     <bundle start-level="30">mvn:org.apache.aries/org.apache.aries.util/1.1.1-SNAPSHOT</bundle>
30     <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.api/1.0.1-SNAPSHOT</bundle>
31     <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.blueprint.aries/1.0.2-SNAPSHOT</bundle>
32     <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container/1.0.1-SNAPSHOT</bundle>
33     <bundle start-level="30">mvn:org.apache.aries.jpa/org.apache.aries.jpa.container.context/1.0.2-SNAPSHOT</bundle>
34
35     <!-- JNDI -->
36     <bundle start-level="30">mvn:org.apache.aries/org.apache.aries.util/1.0.0</bundle>
37     <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.api/1.0.0</bundle>
38     <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.core/1.0.0</bundle>
39     <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.rmi/1.0.0</bundle>
40     <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.url/1.0.0</bundle>
41     <bundle start-level="30">mvn:org.apache.aries.jndi/org.apache.aries.jndi.legacy.support/1.0.0</bundle>
42
43     <!-- Taken from Karaf-Tutorial -->
44     <bundle>mvn:commons-collections/commons-collections/3.2.1</bundle>
45     <bundle>mvn:commons-pool/commons-pool/1.5.4</bundle>
46     <bundle>mvn:commons-dbcp/commons-dbcp/1.4</bundle>
47     <bundle>mvn:commons-lang/commons-lang/2.6</bundle>
48     <bundle>wrap:mvn:net.sourceforge.serp/serp/1.13.1</bundle>
49
50     <bundle>mvn:com.h2database/h2/1.3.170</bundle>
51     <bundle>blueprint:file:/[PATH]/datasource-h2.xml</bundle>
52
53     <!-- These do not natively support OSGi, so using 3rd party bundles. -->
54     <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.antlr/2.7.7_5</bundle>
55     <bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.dom4j/1.6.1_5</bundle>
56
57     <!-- These do not natively support OSGi, so wrap with BND. -->
58     <bundle>wrap:mvn:org.jboss/jandex/1.1.0.Final</bundle>
59
60     <bundle>mvn:com.fasterxml/classmate/0.8.0</bundle>
61     <bundle>mvn:org.apache.logging.log4j/log4j-api/2.0</bundle>
62     <bundle>mvn:log4j/log4j/1.2.17</bundle>
63     <bundle>mvn:org.jboss.logging/jboss-logging/3.2.1.Final</bundle>
64     <bundle>mvn:org.javassist/javassist/3.18.1-GA</bundle>
65
66     <bundle>mvn:org.hibernate.common/hibernate-commons-annotations/4.0.5.Final</bundle>
67
68     <bundle>mvn:org.hibernate/hibernate-core/5.0.12.Final</bundle>
69     <bundle>mvn:org.hibernate/hibernate-entitymanager/5.0.12.Final</bundle>
70
71     <!-- TODO: It seems that the persistence unit bundle needs to be started
72     before hibernate-osgi.  When the BundleActivator is started,
73     the persistence unit is provided even though managed-jpa
74     hasn't completely started yet.  If that happens, you'll get an "illegal
75     bundle state" exception.  Is there a way for the activator to
76     watch for bundles with PUs before registering the persistence provider? -->
77     <bundle>mvn:org.hibernate.osgi/managed-jpa/1.0.0</bundle>
78
79     <bundle>mvn:org.hibernate/hibernate-osgi/5.0.12.Final</bundle>
80   </feature>
81 </features>