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

failed to excurte scr-plugin, missing org/osgi/service/component/annotations/Component

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: SCR Tooling
    • Labels:
      None

      Description

      I update a project (projectA) to use the org.osgi.service.component annotations.

      Now dependent projects fail with the messages like the following:

      Failed to execute goal org.apache.felix:maven-scr-plugin:1.15.0:scr (generate-scr-scrdescriptor) on project silklinking-service: Execution generate-scr-scrdescriptor of goal org.apache.felix:maven-scr-plugin:1.15.0:scr failed: A required class was missing while executing org.apache.felix:maven-scr-plugin:1.15.0:scr: org/osgi/service/component/annotations/Component

      if and only if:

      • they depend on projectA and the dependency is explicit in the pom (transitive dependency isn't enough)
      • they use a version of the scr plugin more recent than 1.7.4

      Surprisingly the error occurs even if I add org.apache.felix.scr.ds-annotations:1.2.4 as a dependency to the dependent project.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              reto Reto Gmür
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: