Hi All,

I am trying to use the karaf-maven-plugin 3.0.0-SNAPSHOT to generate a
features.xml and bundle it into the KAR but I am seeing an issue for
non-bundles.  It does generate a feature xml file but what I am noticing is
that none of the urls for non-bundles in the generated feature xml get
prefixed with a "wrap:" so when I deploy the kar to the deploy directory in
Karaf 2.2.4 it throws a BundleException.

org.osgi.framework.BundleException: Jar is not a bundle, no
Bundle-SymbolicName 

As a work-around I explicity put "wrap:" prefix in front of the uri for the
non-bundles in an input feature xml and then I end up with two bundles being
defined in the output feature.xml.  I can exclude the artifact in my pom.xml
in the dependency list but this does not always work for transient
dependencies.

So how do I

1) Use the karaf-maven-plugin but not overwrite my manually created
feature.xml to build a KAR
or
2) Use the karaf-maven-plugin to build a KAR that automatically generates
the feature xml with correctly prefixed uris that include the "wrap:" prefix
for non-bundles

Thanks.

-Mike-

--
View this message in context: 
http://karaf.922171.n3.nabble.com/Building-KARs-with-karaf-maven-plugin-3-0-0-SNAPSHOT-tp3507984p3507984.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to