karaf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Freeman Fang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KARAF-1585) Installing using wrap protocol fails when specifying bundle version
Date Mon, 25 Jun 2012 00:56:42 GMT

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

Freeman Fang commented on KARAF-1585:
-------------------------------------

Hi Claus,

The wrap url in features should be like

<bundle dependency='true'>wrap:mvn:org.fusesource.leveldbjni/leveldbjni-all/1.2$Bundle-Version=1.2&amp;Export-Package=*;-noimport:=true;version="1.2"</bundle>
This way it can specify the export package version like

Export-Package = 
	org.fusesource.hawtjni.runtime;version=1.2,
	org.fusesource.leveldbjni;uses:="org.iq80.leveldb,org.fusesource.leveldbjni.internal,org.fusesource.hawtjni.runtime";version=1.2,
	org.fusesource.leveldbjni.internal;uses:="org.iq80.leveldb,org.fusesource.hawtjni.runtime";version=1.2,
	org.iq80.leveldb;version=1.2

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