3 Replies Latest reply on Jan 31, 2011 4:52 AM by Josef Jahn

    maven: Cannot find lifecycle mapping for packaging: 'jbi-service-assembly'

    Josef Jahn Newbie

      Hello folks,

       

      Since today, a small project I had working with Fuse Servicemix 4.2 does not compile anymore - after maven downloaded some updates. There were no changes made by myself or anyone else.

       

      Cannot find lifecycle mapping for packaging: 'jbi-service-assembly'.

      Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingjbi-service-assembly.

       

      Now since this is a pretty standard thing to do, I'd imagine that others have to get the same problem too. I spent a lot of time searching for this issue and all I can find are old threads about jbi-service-unit, but nothing about jbi-service-assembly.

       

      I tried deleting the .m2 cache of the servicemix tooling but that didn't help, and I'm scratching my head as to what's causing this, and why this broke with the latest updates.

       

      Does anyone have any ideas?

       

      Edited by: jjahn on Jan 28, 2011 2:22 PM

        • 1. Re: maven: Cannot find lifecycle mapping for packaging: 'jbi-service-assembly'
          Freeman(Yue) Fang Master

          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'
            Josef Jahn Newbie

            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'
              Josef Jahn Newbie

              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