You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Robert Varga (Jira)" <ji...@apache.org> on 2020/09/26 23:57:00 UTC
[jira] [Commented] (FELIX-6337) Maven Bundle Plugin generates
incorrect Provide-Capability
[ https://issues.apache.org/jira/browse/FELIX-6337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17202704#comment-17202704 ]
Robert Varga commented on FELIX-6337:
-------------------------------------
I strongly suspect FELIX-6269 is causing it, as also noted in https://github.com/apache/felix-dev/commit/76dba132d4abbab75f20dc5096649842c52e4810#commitcomment-41819586
> Maven Bundle Plugin generates incorrect Provide-Capability
> ----------------------------------------------------------
>
> Key: FELIX-6337
> URL: https://issues.apache.org/jira/browse/FELIX-6337
> Project: Felix
> Issue Type: Bug
> Components: Maven Bundle Plugin
> Affects Versions: maven-bundle-plugin-5.1.1
> Reporter: Robert Varga
> Priority: Critical
>
> When presented with the following:
> {code:java}
> @Component(immediate = true, service = { CacheManagers.class, CacheManagersRegistry.class })
> public class CacheManagersRegistryImpl implements CacheManagersRegistry {
> {code}
> maven-bundle-plugin-5.1.1 generates the following:
> {noformat}
> Provide-Capability: osgi.service;uses:="org.opendaylight.infrautils.cach
> es,org.opendaylight.infrautils.caches.baseimpl";objectClass="org.openda
> ylight.infrautils.caches.CacheManagers,org.opendaylight.infrautils.cach
> es.baseimpl.CacheManagersRegistry"
> {noformat}
> whereas maven-bundle-plugin-4.2.1 generates the following:
> {noformat}
> Provide-Capability: osgi.service;objectClass:List<String>="org.opendayli
> ght.infrautils.caches.CacheManagers,org.opendaylight.infrautils.caches.
> baseimpl.CacheManagersRegistry"
> {noformat}
> It seems the List<String> part is getting lost, hence the value is treated as a single String – which leads to at least Karaf failing to install dependent bundles.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)