Quantcast
Channel: Adobe Community : All Content - All Communities
Viewing all articles
Browse latest Browse all 290743

No OSGi SCR metadata found

$
0
0

I am  trying to setup my env for unit test for sling models for AEM 6.3

there is one error I see when running maven build

 

Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 1.165 sec <<< FAILURE! - in com.mcmc.aem.models.impl.BreadcrumbImplTest

testStyleBasedBreadcrumb(org.cshs.aem.models.impl.BreadcrumbImplTest)  Time elapsed: 0.995 sec  <<< ERROR!

java.lang.RuntimeException: After setup failed (com.adobe.cq.wcm.core.components.context.CoreComponentTestContext$$Lambda$1/1468177767@7 2cf2de5): No OSGi SCR metadata found for class com.adobe.cq.wcm.core.components.testing.MockAdapterFactory

  at org.apache.sling.testing.mock.osgi.context.ContextPlugins.executeAfterSetUpCallback(Conte xtPlugins.java:210)

 

I have been following the project from

GitHub - Adobe-Marketing-Cloud/aem-core-wcm-components: AEM Core WCM Components

I have build plugins and configurations same as  aem-core-wcm-components/pom.xml at master · Adobe-Marketing-Cloud/aem-core-wcm-components · GitHub

that should take care of metadata

Not sure why this error is coming


Viewing all articles
Browse latest Browse all 290743

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>