karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giuseppe Gerla <giuseppe.ge...@gmail.com>
Subject Aries JPA feature and Eclipselink conflict
Date Tue, 03 Feb 2015 16:10:52 GMT
Hi all
I need to use Aries-JPA in combination with eclipselink and mysql.
I prepare following feature to install all dependency.


<feature name="jpa-requirements" version="1.0.0">
<feature>transaction</feature>
<feature>jndi</feature>
<feature>jpa</feature>
<feature>jms</feature>


<bundle
start-level='30'>mvn:org.apache.aries.jpa/org.apache.aries.jpa.eclipselink.adapter/1.0.0-SNAPSHOT
</bundle>
<bundle>mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-dbcp/1.4_3
</bundle>
<bundle>mvn:mysql/mysql-connector-java/${mysql.connector.version}
</bundle>

<bundle>mvn:org.eclipse.persistence/javax.persistence/${jpa.eclipselink.version}
</bundle>
<bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.antlr/${eclipselink.version}
</bundle>
<bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.asm/${eclipselink.version}
</bundle>
<bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.core/${eclipselink.version}
</bundle>
<bundle>mvn:org.eclipse.persistence/org.eclipse.persistence.jpa/${eclipselink.version}
</bundle>
</bundle>
</feature>


The problem is that after the installation of this feature, I have to
manually uninstall

mvn: org.hibernate.javax.persistence / hibernate-jpa-2.1-api / 1.0.0.Final

contained in the jpa feature because it is in conflict with

mvn: org.eclipse.persistence / javax.persistence / 2.1.0

which is necessary for EclipseLink.


Is it possible to uninstall the hibernate bundle automatically? Is it
possible install jpa feature excluding hibernate bundle?


Thanks
Regards
Giuseppe

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message