Description
When I try to run any unit-test in IntelliJ I get an exception that it cannot load the class SCRDescriptorBndPlugin.
It is possible to work around the issue by removing this plugin from the configuration of the maven-bundle-plugin if, and only if, we are running within IntelliJ.
osgi: [oak-jackrabbit-api] Exception: java.lang.ClassNotFoundException: org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin not found, parent: java.net.URLClassLoader@75b84c92 urls:[] exception:java.lang.ClassNotFoundException: org.apache.felix.scrplugin.bnd.SCRDescriptorBndPlugin not found in aQute.bnd.osgi.Processor$CL@516137d0 at aQute.bnd.osgi.ActivelyClosingClassLoader.lambda$findClass$3(ActivelyClosingClassLoader.java:102) at java.util.Optional.orElseThrow(Optional.java:290) at aQute.bnd.osgi.ActivelyClosingClassLoader.findClass(ActivelyClosingClassLoader.java:102) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at aQute.bnd.osgi.ActivelyClosingClassLoader.loadClass(ActivelyClosingClassLoader.java:204) ...
A similar issue was reported with JetBrains as IDEA-141732.
Attachments
Issue Links
- links to