this error comes from m2e which does not handle your scr plugin. So we need to define what to do with that plugin within the lifecycle mapping.
Try to add the following to your pom.xml file:
Hope that helps with your problem.
Are you sure that it is exactly the same issue? Could you post a stack or problem details info here?
Plugin execution not covered by lifecycle configuration: org.apache.felix:maven-scr-plugin:1.7.4:scr (execution: generate-scr-scrdescriptor, phase: process-classes) pom.xml
Maven Project Build Lifecycle Mapping Problem
Thats really odd. Usually it should fix the problem. Could you rebuild it via mvn clean install and then reimport into Eclipse? (just to be sure)
Result seems to be quite inconclusive: at some point I was able to get rid of the initial problem, but at this point FuseIDE (Eclipse) itself starts misbehaving:
Errors occurred during the build. Errors running builder 'Maven Project Builder' on project 'DbConfigMng'. java.lang.NullPointerException *
This happened after I moved "pluginManagement" tag under "build" tag as it was suggested here: http://maven.apache.org/pom.html#Plugin_Management
It looks like even "clean" on the project does not help any longer, so I will re-assemble from the clean slate in minimal form and will check again...
If you are fine with it you can also send me your zipped project so I can have a look at the problem.
Upon project re-assembly, the original problem was positively RESOLVED (although, as newcomers to the technology we are struggling through other baby-steps).
Good to hear that it works out now for you. Please let us know if you encounter other problems. We are happy to help you solve your problems.
It looks like we were able to get past compilation, but not really to use the service...
I'm providing a reduced samples in the file attached.
Hello1Service is using SCR plugin to declare and publish service.
Hello1Camel is creating a bean using the service and then uses bean in camel route.
On the surface:
smx@root> osgi:list|grep Hello
When looking deeper into Hello1Service assembled bundle:
afomenko:0 afomenko$ cat META-INF/MANIFEST.MF
Bundle-Name: Hello1Service OSGi Bundle
Created-By: Apache Maven Bundle Plugin
afomenko:0 afomenko$ cat OSGI-INF/serviceComponents.xml
It looks like maven-plugin is ignoring export directive not to export "Impl" packages, but this is not a biggest issue.
The bigger one is: Hello1Camel is waiting forever to discover service which should have been essentially declared by Hello1Service exported configuration. Not sure where to go next from here. Please help!
sample.tgz 21.1 KB
Mistake from our side: we thought that upon sample successful compilation the rest would work, but apparently we still have the issue... Please see reply to last message for the problem description
Edited by: abara on Jul 16, 2012 7:29 PM
the question was relocated to another (fresh) thread