Hi Roy,
> On 25 Feb 2021, at 10:37, Roy Teeuwen wrote:
>
> Is there an easy way in intellij to get those OSGi SCR xmls in a junit run
> configuration without having to triggering a maven install / bundle execution
> plugin first?
Not that I know of. I usually do a mvn clean package when I’m
>-Original Message-
>From: Roy Teeuwen
>Sent: Thursday, February 25, 2021 10:38 AM
>To: Sling Developers
>Subject: Re: No OSGi SCR metadata in Unit Tests
>
>Interesting that you mention Intellij Stefan? Because If i wouldn't do a
>mvn install first before executing the unit
>
> stefan
>
> [1]
> https://github.com/wcm-io/wcm-io-tooling/blob/23b28c1795a0dba9f5e51c429eecea102ae8e289/maven/aem-global-parent/pom.xml#L246-L306
>
>> -Original Message-
>> From: Cris Rockwell
>> Sent: Thursday, February 25, 2021 12:18 AM
>>
: Cris Rockwell
>Sent: Thursday, February 25, 2021 12:18 AM
>To: dev@sling.apache.org
>Subject: No OSGi SCR metadata in Unit Tests
>
>Hi, I have a problem getting a resource resolver factory working in my unit
>tests. The error looks like this
>
>org.apache.sling.testing.mo
Hi, I have a problem getting a resource resolver factory working in my unit
tests. The error looks like this
org.apache.sling.testing.mock.osgi.NoScrMetadataException: No OSGi SCR metadata
found for class org.apache.sling.api.resource.ResourceResolverFactory
My code looks like this
@Test