Affects Version/s: scr bnd plugin 1.0.0, scr bnd plugin 1.1.0
Fix Version/s: scr bnd plugin 1.3.0
Component/s: SCR Tooling
Environment:Apache Maven 3.0.5 (r01de14724cdef164cd33c7c8c2fe155faf9602da; 2013-02-19 14:51:28+0100)
Java version: 1.7.0_51, vendor: Oracle Corporation
Default locale: en_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.9.4", arch: "x86_64", family: "mac"
Using the scr bnd plugin inside maven-bundle-plugin fails with java.lang.NoSuchMethodError: aQute.bnd.osgi.Verifier.isStrict()Z
(full pom.xml attached)
Root cause is that scr-bnd plugin includes an incompatible version of bndlib (2.1.0) while maven-bundle-plugin 2.5.0 is using bndlib 2.3.0. In the maven context, scr-bnd plugin is first in the class path and so, its embedded version of bndlib wins.
Probably scr-bnd plugin should not include a version of bndlib at all, but expect it to be provided by the caller of the plugin.
add a dependency on bndlib before scr-bnd plugin: