Unit test using junit 5 No OSGi SCR metadata found | Community
Skip to main content
subrato_kha
Level 4
December 14, 2021

Unit test using junit 5 No OSGi SCR metadata found

  • December 14, 2021
  • 1 reply
  • 2043 views

Hi All,

 

I have created recently a project using maven archetype 26. I am using bnd-maven-plugin not maven-bundle-plugin in the project.

I am getting org.apache.sling.testing.mock.osgi.NoScrMetadataException: No OSGi SCR metadata found for class error while running unit test.

The META-INF and OSGI-INF folders with meta data is generated. Does anyone has faced this issue?

@Jörg_Hoh

@kautuk_sahni 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

SantoshSai
Community Advisor
Community Advisor
December 14, 2021

Hi @subrato_kha 

Kindly check here if it helps you, I remember, I did something related to Unit Test.

 

https://github.com/sansai2011/klick/pull/2

 

Regards,

Santosh

Santosh Sai
subrato_kha
Level 4
December 15, 2021

thanks for the reply but this is not the issue. nor this changes fixes anything

March 4, 2024

Hi did you find any solution? I'm seeing same error