Generating OSGi SCR metadata with bnd-maven-plugin

Description

Hi,

I just generated a new AEM project using archetype 23 and now Adobe uses bnd-maven-plugin instead of the old maven-bundle-plugin.

I am getting an exception org.apache.sling.testing.mock.osgi.NoScrMetadataException: No OSGi SCR metadata found for class java.lang.Class when trying to run tests.

Now, I know how to resolve this one by configuring maven-bundle-plugin as explained here: https://felix.apache.org/documentation/faqs/apache-felix-bundle-plugin-faq.html#use-scr-metadata-generated-by-bnd-in-unit-tests

Is there a similar configuration available for bnd-maven-plugin in order to fix this?

 

Thanks,
Daniel

Assignee

Unassigned

Reporter

Daniel Strmecki

Labels

None

Components

Affects versions

Priority

Blocker
Configure