You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (Jira)" <ji...@apache.org> on 2020/10/08 13:13:00 UTC

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

     [ https://issues.apache.org/jira/browse/KARAF-6853?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jean-Baptiste Onofré updated KARAF-6853:
----------------------------------------
    Fix Version/s:     (was: 4.3.1)
                       (was: 4.2.11)

> 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: 2.2.2, 4.2.9
>            Reporter: Terrien Jean-Yves
>            Priority: Major
>
> 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)