Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-6337

Maven Bundle Plugin generates incorrect Provide-Capability

    XMLWordPrintableJSON

    Details

      Description

      When presented with the following:

      @Component(immediate = true, service = { CacheManagers.class, CacheManagersRegistry.class })
      public class CacheManagersRegistryImpl implements CacheManagersRegistry {
      
      

      maven-bundle-plugin-5.1.1 generates the following:

      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"
      

      whereas maven-bundle-plugin-4.2.1 generates the following:

      Provide-Capability: osgi.service;objectClass:List<String>="org.opendayli
       ght.infrautils.caches.CacheManagers,org.opendaylight.infrautils.caches.
       baseimpl.CacheManagersRegistry"
      

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofré
                Reporter:
                nite Robert Varga
              • Votes:
                4 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: