Cannot find lifecycle mapping for packaging: ‘bundle’. 8

Posted by dstanley on January 12, 2010

I’ve hit the error in the title a few times when using the maven bundle plugin to create osgi bundles.

[INFO] Cannot find lifecycle mapping for packaging: 'bundle'.
Component descriptor cannot be found in the component repository: org.apache.maven.lifecycle.mapping.LifecycleMappingbundle.

The fix it, set the ‘extensions’ element to true as shown below.

<plugin>
                <groupId>org.apache.felix</groupId>
                <artifactId>maven-bundle-plugin</artifactId>
                <version>2.0.1</version>
                <extensions>true</extensions>
                <configuration>
                    .... 
 
                </configuration>
</plugin>

Hope this saves you some digging!

Trackbacks

Use this link to trackback from your own site.

Comments

Leave a response

  1. Herbert Yeung Tue, 19 Jan 2010 19:02:10 EDT

    Thanks, definitely has saved me time.
    I wish Maven2 had better debugging messages to inform of the error.

  2. dstanley Tue, 19 Jan 2010 19:54:05 EDT

    Glad to hear it helped :-) it stumped me for a bit.

  3. Justin Thu, 26 May 2011 12:01:26 EDT

    Thanks a Lot! You saved a lot of my time and headache.

  4. Justin Thu, 26 May 2011 12:07:57 EDT

    Thanks for posting this! Saved a lot of time!

  5. dstanley Thu, 26 May 2011 14:29:38 EDT

    Glad it helped :-)

  6. Senthil Mon, 27 Feb 2012 08:03:35 EDT

    Thanks, It works.

  7. Senthil Mon, 27 Feb 2012 08:04:07 EDT

    Can anyone throw some detail on why this element is required ?

  8. abhijith Thu, 03 May 2012 03:52:25 EDT

    Its the problem with the packaging.i just changed the bundle to war and its working here… :)

Comments