Uploaded image for project: 'Jackrabbit Oak'
  1. Jackrabbit Oak
  2. OAK-9896

Running unit-tests in IntelliJ dos not work

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.44.0
    • 1.46.0
    • parent
    • None

    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

          Activity

            People

              jsedding Julian Sedding
              jsedding Julian Sedding
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: