Skip to main content
subrato_kha
Level 4
Dec 14, 2021 6:13 AM UTC

Unit test using junit 5 No OSGi SCR metadata found

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.

3 replies

SantoshSai
Community Advisor
Community Advisor
Dec 14, 2021 11:32 PM UTC

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

Translate
Santosh Sai
subrato_kha
Level 4
Dec 15, 2021 4:29 AM UTC

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

Translate
New Member
Mar 4, 2024 6:11 PM UTC

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

Translate