[protege-user] Can't build Protege from Github!

Руслан Сорокин <[email protected]>
Newsgroups gmane.comp.misc.ontology.protege.owl
Message-ID <CAHbq_M4diV9eq=L9OLW22vadsCmZfdkqCBVdokndVvWbOLeenQ@mail.gmail.com>
Dear Protege users and team!

I have cloned Protege from Github and tried to build using a command: "mvn
clean package", as of instruction. Process ended with a bunch of errors,
beginning this:
…
Downloaded from central:
https://repo.maven.apache.org/maven2/org/apache/maven/surefire/surefire-junit4/3.2.5/surefire-junit4-3.2.5.jar
(18 kB at 134 kB/s)
[INFO]
[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.protege.osgi.framework.BundleSearchPath_TestCase
[ERROR] Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed:
0.194 s <<< FAILURE! -- in
org.protege.osgi.framework.BundleSearchPath_TestCase
[ERROR]
org.protege.osgi.framework.BundleSearchPath_TestCase.shouldNotAddDuplicate
-- Time elapsed: 0.049 s <<< ERROR!
java.lang.ExceptionInInitializerError
    at
org.mockito.cglib.core.KeyFactory$Generator.generateClass(KeyFactory.java:167)
    at
org.mockito.cglib.core.DefaultGeneratorStrategy.generate(DefaultGeneratorStrategy.java:25)
    at
org.mockito.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:217)
,,,
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make
protected final java.lang.Class
java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
throws java.lang.ClassFormatError accessible: module java.base does not
"opens java.lang" to unnamed module @2096442d
    at
java.base/java.lang.reflect.AccessibleObject.throwInaccessibleObjectException(AccessibleObject.java:391)
    at
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:367)
    at
java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:315)
    at
java.base/java.lang.reflect.Method.checkCanSetAccessible(Method.java:203)
    at java.base/java.lang.reflect.Method.setAccessible(Method.java:197)
…
…
[INFO]
[ERROR] Tests run: 34, Failures: 0, Errors: 26, Skipped: 0
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary for protege-parent 5.6.8:
[INFO]
[INFO] protege-parent ..................................... SUCCESS [
 3.761 s]
[INFO] protege-launcher ................................... FAILURE [
42.990 s]
[INFO] protege-common ..................................... SKIPPED
[INFO] protege-editor-core ................................ SKIPPED
[INFO] protege-editor-owl ................................. SKIPPED
[INFO] protege-desktop .................................... SKIPPED
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time:  01:11 min
[INFO] Finished at: 2025-10-24T13:15:26+03:00
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-surefire-plugin:3.2.5:test (default-test) on
project protege-launcher:
[ERROR]
[ERROR] Please refer to
/home/ru/java/protege/protege-launcher/target/surefire-reports for the
individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump,
[date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the
command
[ERROR]   mvn <args> -rf :protege-launcher

This is the end of the dump.
Any help would be greatly appreciated.

Sincerely,
  Ru

--

_______________________________________________
protege-user mailing list
[email protected]
https://mailman.stanford.edu/mailman/listinfo/protege-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.