2 Replies Latest reply on Feb 9, 2012 9:40 AM by Dustin S.

    OSGi wrap mvn protocol bundle-version

    Dustin S. Newbie

      Hi,

       

      I'm trying to get the bundle-version to show up properly inside of wrapped bundles but it always shows up as version="0.0.0"

       

      karaf@root> osgi:install -s wrap:mvn:org.jasypt/jasypt/1.9.0
      Bundle ID: 222
      karaf@root> exports 222
          ID Packages                                
         222 org.jasypt.contrib.org.apache.commons.codec_1_3; version="0.0.0"
         222 org.jasypt.contrib.org.apache.commons.codec_1_3.binary; version="0.0.0"
         222 org.jasypt.registry; version="0.0.0"    
         222 org.jasypt.util.password.rfc2307; version="0.0.0"
      

       

      According to the documentation, you can do this:

       

      root@karaf> osgi:install wrap:mvn:commons-lang/commons-lang/2.4,Bundle-SymbolicName=commons-lang&Bundle-Version=2.4
      

       

      However, I try it and it says MalformedURLException

       

      karaf@root> osgi:install wrap:mvn:org.jasypt/jasypt/1.9.0,Bundle-SymbolicName=Jasypt&Bundle-Version=1.9.0
      java.net.MalformedURLException: no protocol: Bundle-SymbolicName=Jasypt&Bundle-Version=1.9.0
      

       

      Is this not supported? If not, is there any other way to get the version in the wrapped bundle without creating my own wrapped version?

       

      Thanks,

      Dustin

       

      Edited by: dustin on Feb 8, 2012 9:44 PM

       

      Edited by: dustin on Feb 8, 2012 9:47 PM