Sure,

<plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <extensions>true</extensions>
                <configuration>
                    <instructions>                    
                       
<Meta-Persistence>META-INF/persistence.xml</Meta-Persistence>
                        <Import-Package>
                           
org.apache.felix.service.command;version="[0.6,1)",
                           
org.apache.felix.gogo.commands;version="[0.6,1)",
                           
org.apache.karaf.shell.console;version="[2.2,4.1)",
                            org.hibernate.proxy,
                            javassist.util.proxy,
                            *
                        </Import-Package>
                    </instructions>
                </configuration>
            </plugin>

The generated manifest looks like this:

Manifest-Version: 1.0
Bnd-LastModified: 1496749271882
Build-Jdk: 1.8.0_121
Built-By: smunro
Bundle-Blueprint: OSGI-INF/blueprint/blueprint.xml
Bundle-Description: A version of the SGS parent POM that doesn't build a
 n RPM installer for the project, but includes the full SGS build proces
 s and dependency suite.         This is useful for projects that are us
 ed as libraries, rather than standalone applications.
Bundle-ManifestVersion: 2
Bundle-Name: Authentication DB Impl
Bundle-SymbolicName:  org.desolateplaneti.authentication-db-i
 mpl
Bundle-Version: 0.0.9.SNAPSHOT
Created-By: Apache Maven Bundle Plugin
Import-Package: org.desolateplanet.cim.types;version="[0.0,1)",
  org.desolateplanet.security.manage;version="[0.0,1)",
org.desolateplaneti.security.model;version="[0.0,1)",javax.persist
 ence;version="[2.1,3)",javax.sql,org.osgi.service.blueprint;version="[1
 .0.0,2.0.0)",org.apache.felix.service.command;version="[0.6,1)",org.apa
 che.felix.gogo.commands;version="[0.6,1)",org.apache.karaf.shell.consol
 e;version="[2.2,4.1)",org.hibernate.proxy;version="[4.3,5)",javassist.u
 til.proxy;version="[3.18,4)"
Meta-Persistence: META-INF/persistence.xml
Require-Capability: osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=1.8))"
Tool: Bnd-3.0.0.201509101326



--
View this message in context: 
http://karaf.922171.n3.nabble.com/Hibernate-JPA-and-Karaf-4-tp4050569p4050579.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to