You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Terrien Jean-Yves (Jira)" <ji...@apache.org> on 2020/09/15 07:57:00 UTC

[jira] [Created] (KARAF-6853) the wrap deployer does not calculate symbolic name and version correctly.

Terrien Jean-Yves created KARAF-6853:
----------------------------------------

             Summary: the wrap deployer does not calculate symbolic name and version correctly.
                 Key: KARAF-6853
                 URL: https://issues.apache.org/jira/browse/KARAF-6853
             Project: Karaf
          Issue Type: Improvement
          Components: karaf
    Affects Versions: 4.2.9, 2.2.2
            Reporter: Terrien Jean-Yves


when we deploy jar using wrap without giving a version or name
wrap create a symbolic name which is the url in which we replaced : and / by _ and version 0
wrap: mvn: foo/bar/2.1.5 will give Bundle-SymbolicName=wrap_mvn_foo_bar_2.1.5 and Bundle-Version=0

exemple karaf 2.2.2: 
Bundle-Name = wrap_mvn_ojdbc_ojdbc_14
Bundle-SymbolicName = wrap_mvn_ojdbc_ojdbc_14
Bundle-Version = 0
Bundle-ManifestVersion = 2
exemple karaf 4.2.9
Bundle-ManifestVersion = 2
Bundle-Name = wrap_mvn_ojdbc_ojdbc_14
Bundle-SymbolicName = wrap_mvn_ojdbc_ojdbc_14
Bundle-Version = 0

It is possible to add this information in the url with $ Bundle-SymbolicName, ...
But wrap could calculate them alone from the url
wrap:mvn:groupId/artifactId/version
should give
Bundle-ManifestVersion = 2
Bundle-Name = artifactId
Bundle-SymbolicName = artifactId
Bundle-Version = version

Or
Bundle-ManifestVersion = 2
Bundle-Name = groupId artifactId
Bundle-SymbolicName = groupId_artifactId
Bundle-Version = version






--
This message was sent by Atlassian Jira
(v8.3.4#803005)