You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jamie goodyear (Issue Comment Edited) (JIRA)" <ji...@apache.org> on 2012/03/13 16:54:41 UTC

[jira] [Issue Comment Edited] (KARAF-891) Problem with $ charact in wrap:mvn URL

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

Jamie goodyear edited comment on KARAF-891 at 3/13/12 3:53 PM:
---------------------------------------------------------------

Note:

If you double escape the $ then it appears to work.

karaf@root> osgi:install -s wrap:mvn:org.springframework.ldap/spring-ldap-core/1.3.1.RELEASE \ \ $Bundle-SymbolicName=spring-ldap-core&Bundle-Version=1.3.1
osgi:install -s wrap:mvn:org.springframework.ldap/spring-ldap-core/1.3.1.RELEASE\$Bundle-SymbolicName=spring-ldap-core&Bundle-Version=1.3.1
Bundle ID: 52
karaf@root> 
                
      was (Author: jgoodyear):
    Note:

If you double escape the $ then it appears to work.

karaf@root> osgi:install -s wrap:mvn:org.springframework.ldap/spring-ldap-core/1.3.1.RELEASE\\$Bundle-SymbolicName=spring-ldap-core&Bundle-Version=1.3.1
osgi:install -s wrap:mvn:org.springframework.ldap/spring-ldap-core/1.3.1.RELEASE\$Bundle-SymbolicName=spring-ldap-core&Bundle-Version=1.3.1
Bundle ID: 52
karaf@root> 
                  
> Problem with $ charact in wrap:mvn URL
> --------------------------------------
>
>                 Key: KARAF-891
>                 URL: https://issues.apache.org/jira/browse/KARAF-891
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-documentation, karaf-shell
>    Affects Versions: 2.2.1
>         Environment: OS-X Lion JDK 1.6
>            Reporter: Brian Topping
>             Fix For: 2.2.6, 3.0.0
>
>
> When trying to install a maven jar with the wrap protocol, the syntax documented at both http://team.ops4j.org/wiki//display/paxurl/Wrap+Protocol and http://karaf.apache.org/manual/2.2.2/developers-guide/creating-bundles.html do not have the desired effect when attempting to add instructions such as Bundle-Version in the URL.  
> Example:  "osgi:install -s wrap:mvn:org.springframework.ldap/spring-ldap-core/1.3.1.RELEASE$Bundle-SymbolicName=spring-ldap-core&Bundle-Version=1.3.1"

--
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