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

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 UTC

    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 UTC

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

Comments