karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guillaume Nodet (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version
Date Sat, 23 Jun 2012 11:02:42 GMT

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

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

The $ sign is used for substitution in the shell, so you need to escape it, or to disable
substitution using simple quotes:

{code}
karaf@root>  osgi:install 'wrap:mvn:org.fusesource.leveldbjni/leveldbjni-all/1.2$Bundle-SymbolicName=Foo&Bundle-Version=1.2'
Bundle ID: 181
karaf@root> headers 181

Foo (181)
---------
Archiver-Version = Plexus Archiver
Specification-Title = leveldbjni-all
Tool = Bnd-0.0.357
Specification-Version = 1.2
Specification-Vendor = FuseSource, Corp.
Implementation-Version = 1.2
Build-Jdk = 1.6.0_29
Generated-By-Ops4j-Pax-From = wrap:mvn:org.fusesource.leveldbjni/leveldbjni-all/1.2$Bundle-SymbolicName=Foo&Bundle-Version=1.2
Implementation-Vendor-Id = org.fusesource.leveldbjni
Created-By = 1.6.0_31 (Apple Inc.)
Implementation-Title = leveldbjni-all
Manifest-Version = 1.0
Bnd-LastModified = 1340449217352
Originally-Created-By = Apache Maven
Built-By = chirino
Implementation-Vendor = FuseSource, Corp.

Bundle-Name = Foo
Bundle-SymbolicName = Foo
Bundle-Version = 1.2
Bundle-ManifestVersion = 2

Import-Package = 
	org.fusesource.hawtjni.runtime;resolution:=optional,
	org.fusesource.leveldbjni;resolution:=optional,
	org.fusesource.leveldbjni.internal;resolution:=optional,
	org.iq80.leveldb;resolution:=optional
Export-Package = 
	org.fusesource.hawtjni.runtime,
	org.fusesource.leveldbjni;uses:="org.iq80.leveldb,org.fusesource.leveldbjni.internal,org.fusesource.hawtjni.runtime",
	org.fusesource.leveldbjni.internal;uses:="org.iq80.leveldb,org.fusesource.hawtjni.runtime",
	org.iq80.leveldb

{code}
                
> 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

        

Mime
View raw message