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

Error with duplicates when using maven-bundle-plugin 2.0.1 and maven-scr-plugin 1.4

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • maven-scr-plugin-1.4.0, maven-bundle-plugin-2.0.1
    • maven-scr-plugin-1.4.2
    • None

    Description

      Experiencing the same problem as Patrick Forhahn who commented after https://issues.apache.org/jira/browse/FELIX-1262 was fixed I asked Stuart McCulloch about the bug. Here is his answer about the issue:

      --------------------------
      "The underlying effect is the same (Bnd tool appends ~ to duplicate clauses) but the cause is different.
      FELIX-1262 was caused by duplicate clauses in the Include-Resource calculated by the bundleplugin,
      whereas this new issue is caused by duplication of Service-Component clauses by the scrplugin."

      "Basically duplicate entries should be removed, which is why directly setting ServiceComponent works.
      The question is whether the scrplugin or the bundleplugin should detect and remove the duplicates..."
      --------------------------

      The reason of error is the same as in Patricks comment:

      [ERROR] Error building bundle org.bjc.es:org.bjc.osgi.foundation.cache:bundle:1.13.0.RC1-SNAPSHOT : Service-Component entry can not be located in JAR: OSGI-INF/serviceComponents.xml~

      Attachments

        1. felix-1847-patch
          1 kB
          Reto Gmür

        Activity

          People

            cziegeler Carsten Ziegeler
            bimschas Daniel Bimschas
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: