You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using your plugin and it works very well when I deploy the generated bundles in my application. However, I'm having problems in unit tests environment.
I am trying to run a unit tests and I'm getting the following Error " No OSGi SCR metadata found for class ..." .
After some research I realized that this error is happening because (unlike in the jar file) there is no OSGI-INF folder with the OSGI SRC Metadata in gradle output folder (see image bellow).
(I generated the missing folder manually, and the tests run like a charm)
Would you please assist me by understanding this situation?
Thanks!
The text was updated successfully, but these errors were encountered:
You can resolve this issue by adding the following to your gradle configurations.
// Depend on jar task that runs BND to get OSGi metadata
test.dependsOn jar
// Add jar to classpath to find OSGi metadata
test.classpath += files(jar.archivePath)
Hello,
I am using your plugin and it works very well when I deploy the generated bundles in my application. However, I'm having problems in unit tests environment.
I am trying to run a unit tests and I'm getting the following Error " No OSGi SCR metadata found for class ..." .
After some research I realized that this error is happening because (unlike in the jar file) there is no OSGI-INF folder with the OSGI SRC Metadata in gradle output folder (see image bellow).
(I generated the missing folder manually, and the tests run like a charm)
Would you please assist me by understanding this situation?
Thanks!
The text was updated successfully, but these errors were encountered: