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!
Thanks, definitely has saved me time.
I wish Maven2 had better debugging messages to inform of the error.
Glad to hear it helped
it stumped me for a bit.
Thanks a Lot! You saved a lot of my time and headache.
Thanks for posting this! Saved a lot of time!
Glad it helped
Thanks, It works.
Can anyone throw some detail on why this element is required ?
Its the problem with the packaging.i just changed the bundle to war and its working here…