-
1. Re: maven: Cannot find lifecycle mapping for packaging: 'jbi-service-assembly'
ffang Jan 28, 2011 8:41 PM (in response to jjahn)Hi,
What's your maven version?
Could you try to build with maven 2.2.1?
And FUSE ESB 4.2 is quite old version? How about you use latest FUSE ESB 4.3.0-fuse-03-00?
Freeman
-
2. Re: maven: Cannot find lifecycle mapping for packaging: 'jbi-service-assembly'
jjahn Jan 31, 2011 4:46 AM (in response to ffang)Heya,
Actually this is under maven 2.2.1 - and as I said, it worked before.
I tried it with the latest versions too: jbi-maven-plugin version 4.3.1-fuse-00-00 and servicemix-http and wsn2005 components version 2011.01.0-fuse-00-00
Here's the full error message:
-
Cannot find lifecycle mapping for packaging: 'jbi-service-assembly'.
Component descriptor cannot be found in the component repository: org.apache.mav
en.lifecycle.mapping.LifecycleMappingjbi-service-assembly.
-
Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Cannot find lifecycle mapping for packaging: 'jbi-service-assembly'.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:1365)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindLifecycleForPackaging(DefaultLifecycleExecutor.java:1292)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:1275)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:534)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.codehaus.plexus.component.repository.exception.ComponentLookupException: Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingjbi-service-assembly.
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:323)
at org.codehaus.plexus.DefaultPlexusContainer.lookup(DefaultPlexusContainer.java:440)
at org.apache.maven.execution.MavenSession.lookup(MavenSession.java:138)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.findMappingsForLifecycle(DefaultLifecycleExecutor.java:1358)
... 18 more
-
3. Re: maven: Cannot find lifecycle mapping for packaging: 'jbi-service-assembly'
jjahn Jan 31, 2011 4:52 AM (in response to jjahn)Aaaand I found my error:
I had the following in the pom of my service assembly:
I have no idea why it worked before - and I'm absolutely positive that it did since I have the compiled thing right here... but anyway, that solved this error for me