You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by ronfulkerson <ro...@gmail.com> on 2014/11/26 01:10:35 UTC

Unable to 'wrap' non-osgi maven artifacts with Bundle Info

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.

Re: Unable to 'wrap' non-osgi maven artifacts with Bundle Info

Posted by ronfulkerson <ro...@gmail.com>.
That was the issue.  Thank you for your help!

On Tue, Nov 25, 2014 at 5:30 PM, Stuart McCulloch [via Karaf] <
ml-node+s922171n4036682h99@n3.nabble.com> wrote:

> Since this is an XML file I believe you need to use &amp; 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.
>
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://karaf.922171.n3.nabble.com/Unable-to-wrap-non-osgi-maven-artifacts-with-Bundle-Info-tp4036681p4036682.html
>  To unsubscribe from Unable to 'wrap' non-osgi maven artifacts with Bundle
> Info, click here
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4036681&code=cm9uLmZ1bGtlcnNvbkBnbWFpbC5jb218NDAzNjY4MXwtMTc2OTM2MDQ5NQ==>
> .
> NAML
> <http://karaf.922171.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://karaf.922171.n3.nabble.com/Unable-to-wrap-non-osgi-maven-artifacts-with-Bundle-Info-tp4036681p4036698.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Re: Unable to 'wrap' non-osgi maven artifacts with Bundle Info

Posted by Stuart McCulloch <mc...@gmail.com>.
Since this is an XML file I believe you need to use &amp; 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).
> 
>