Since this is an XML file I believe you need to use & to represent the ampersand between the two bnd instructions
On Wednesday, 26 November 2014 at 00:10, ronfulkerson wrote: > I am attempting to use the wrap protocol in a features file to create a KAR > file using Karaf 3.0.2. When including bundle information (i.e. > $Bundle-SymbolicName=Yammer&Bundle-Version=2.2.0) the build fails with the > following error: > > [ERROR] Failed to execute goal > org.apache.karaf.tooling:karaf-maven-plugin:3.0.2:features-create-kar > (features-create-kar) on project hack-assembly: Could not interpret > features.xml: javax.xml.bind.UnmarshalException > [ERROR] - with linked exception: > [ERROR] [org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 94; The > reference to entity "Bundle-Version" must end with the ';' delimiter.] > > The bundle line looks like: > <bundle>wrap:mvn:com.yammer.metrics/metrics-core/2.2.0$Bundle-SymbolicName=Yammer&Bundle-Version=2.2.0</bundle> > > Adding a semi-colon, as suggested in the error message, does not resolve the > issue. An example project demonstrating the issue can be found here > <https://bitbucket.org/ronfulkerson/stash/downloads/hack.tar.gz> . > > Should an issue be opened for this, or I am doing something wrong? > > Thanks, > Ron > > > > -- > View this message in context: > http://karaf.922171.n3.nabble.com/Unable-to-wrap-non-osgi-maven-artifacts-with-Bundle-Info-tp4036681.html > Sent from the Karaf - User mailing list archive at Nabble.com > (http://Nabble.com). > >
