[ 
https://issues.apache.org/jira/browse/KARAF-1585?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13399953#comment-13399953
 ] 

Guillaume Nodet commented on KARAF-1585:
----------------------------------------

You don't need to quote inside the feature definition. Only from the shell 
because the shell considers $ a reservers character.

For the metadata, there's an overwrite property which you can use when 
re-bundling a bundle to define the behavior wrt to the existing metadata.
For example:

{code}
wrap:mvn:tomcat/commons-el/5.5.23$Import-Package=*;resolution:=optional&Export-Package=org.apache.commons.el*;-noimport:=true&overwrite=merge
{code}

The default value is overwrite=keep which iirc keep the existing metadata 
intact, so only new headers can be added.  Try with merge as shown in the 
example above.

                
> Installing using wrap protocol fails when specifying bundle version
> -------------------------------------------------------------------
>
>                 Key: KARAF-1585
>                 URL: https://issues.apache.org/jira/browse/KARAF-1585
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 2.2.7
>            Reporter: Claus Ibsen
>            Priority: Minor
>
> I follow the docs at
> http://karaf.apache.org/manual/2.2.7/developers-guide/creating-bundles.html
> at the section _Creating bundles for third party dependencies_
> I try to execute as documented
> {code}
> karaf@root> osgi:install 
> wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> java.net.MalformedURLException: no protocol: 
> Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
> {code}
> But it fails. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to