[
https://issues.apache.org/jira/browse/FELIX-4450?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13924987#comment-13924987
]
David Jencks commented on FELIX-4450:
-------------------------------------
Since you are using the spec DS annotations its not really surprising that
adding the felix proprietary annotations to the class path didn't help.
However you are getting the spec ds annotations available to your compile class
path, I think you need to do the same for the maven-scr-plugin configuration.
I haven't dealt with maven class paths for a while so this might not be
accurate.
Is it possible to just use the maven-bundle-plugin and configure bnd to deal
with the DS annotations? IIUC bnd is doing all the work here too anyway for
spec DS annotations (I could be wrong).
> failet to excurte scr-plugin, missing
> org/osgi/service/component/annotations/Component
> --------------------------------------------------------------------------------------
>
> Key: FELIX-4450
> URL: https://issues.apache.org/jira/browse/FELIX-4450
> Project: Felix
> Issue Type: Bug
> Components: Maven SCR Plugin
> Reporter: Reto Bachmann-Gmür
>
> 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.
--
This message was sent by Atlassian JIRA
(v6.2#6252)