otaviojava/Easy-Cassandra — pull request #33 by siwatson (2014-04-11 11:47:02+00:00)
Title: Added bundle plugin to create OSGi manifest data

This update adds OSGi metadata to the JAR's manifest (using the bundle maven plugin), allowing EasyCassandra to be deployed in an OSGi container. I've tested this in Apache Karaf.

The explicit import of javax.persistence is to solve an issue I encountered with BND automatically assuming a version range of < 2.0. Feel free to add more packages to be exported if these are part of the EC's API.

As an aside, I first tried using the Achilles Cassandra ORM layer in an OSGi environment and didn't get very far due to class loading issues caused by its use of Reflections and cglib libraries. I suspect other ORM libs may have similar issues. Whereas EasyCassandra seems to work very well for me.

For anyone else using Apache Karaf, this feature descriptor will be useful:

mvn:com.codahale.metrics/metrics-core/3.0.2
mvn:com.google.guava/guava/16.0.1
mvn:io.netty/netty/3.9.0.Final
mvn:com.datastax.cassandra/cassandra-driver-core/2.0.1
mvn:com.google.code.gson/gson/2.2.4
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-beans/3.2.8.RELEASE_1
mvn:org.apache.servicemix.bundles/org.apache.servicemix.bundles.spring-core/3.2.8.RELEASE_1
mvn:org.springframework.data/spring-data-commons-core/1.4.1.RELEASE
mvn:org.eclipse.persistence/javax.persistence/2.0.0
mvn:org.easycassandra/EasyCassandra/2.0.4-SNAPSHOT