[
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:55 PM:
---------------------------------------------------------------
Note:
If you double escape the $ then it appears to work (two \ before the $).
{code}
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>
karaf@root> list
START LEVEL 100 , List Threshold: 50
ID State Blueprint Level Name
[ 52] [Active ] [ ] [ 60] spring-ldap-core (1.3.1)
karaf@root>
{code}
was (Author: jgoodyear):
Note:
If you double escape the $ then it appears to work (two \ before the $).
{code}
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>
{code}
> 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