Re: No OSGi SCR metadata in Unit Tests

2021-02-25 Thread Radu Cotescu
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 a

RE: No OSGi SCR metadata in Unit Tests

2021-02-25 Thread Stefan Seifert
tefan >-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 executin

Re: No OSGi SCR metadata in Unit Tests

2021-02-25 Thread Roy Teeuwen
Interesting that you mention Intellij Stefan? Because If i wouldn't do a mvn install first before executing the unit tests from the Intellij junit run configuration, it will fail with the exact reason stated. Is there an easy way in intellij to get those OSGi SCR xmls in a junit run configuratio

RE: No OSGi SCR metadata in Unit Tests

2021-02-25 Thread Stefan Seifert
it should work quote out-of-the-box with bnd-maven-plugin integrated into the maven build, with an execution for the bnd-process goal. [1] shows an rather full-featured example, but you do not need all this for simple use cases. some IDEs may have problems generating the OSGi metadata during the