Closed SeSodesa closed 2 years ago
Due to changes made in the Java build process starting in version 9, the project is currently set up to build only against older versions of Java. It should build cleanly with Java 8, but it would take a bit of clean up to get everything updated to Java9 or above.
Changing my Java version to 8 seems to have worked:
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for MITREid Connect 1.3.4-SNAPSHOT:
[INFO]
[INFO] MITREid Connect .................................... SUCCESS [ 15.468 s]
[INFO] OpenID Connect Common .............................. SUCCESS [ 14.084 s]
[INFO] OpenID Connect Client .............................. SUCCESS [ 8.017 s]
[INFO] OpenID Connect Server Library ...................... SUCCESS [ 15.977 s]
[INFO] OpenID Connect Server Webapp ....................... SUCCESS [ 16.705 s]
[INFO] UMA Server Library ................................. SUCCESS [ 4.880 s]
[INFO] UMA Server Webapp .................................. SUCCESS [ 3.506 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:19 min
[INFO] Finished at: 2021-09-10T14:00:37+03:00
[INFO] ------------------------------------------------------------------------
I'm new to the Java ecosystem and browsing different libraries, it seems like many of them seem to be using Java 8. I'm wondering if Red Hat has something to do with this? A lot of common Maven dependencies seem to be downloaded from Red Hat servers, for example.
Thanks for the help.
The build of the project fails because of the 3 mentioned issues, when running
in the project root, as instructed in the build instructions. This happens on
The related error message claims the following:
It then seems like the
javax.annotation
package has not been added as a dependency in the fileopenid-connect-common/pom.xml
. In fact, adding the linesunder the
dependencies
tag allows the build process to continue.However, this is not the end of the issues. After the build of the
openid-connect-common
succeeds, the related tests start running. These tests then go on to cause the JVM to crash, with the error message:This can be fixed by changing the JaCoCo Maven plugin version to a newer one in the root
pom.xml
:Finally, and this I have not been able to fix yet, the wro4j plugin prevents the compilation of
openid-connect-server-webapp
because of an API incompatibility issue, which results in aNullPointerException
:What might I do to fix this? I tried commenting out
source
andtarget
tags inserver-webapp/pom.xml
:in the hopes that this might be a Java version issue, but the results remain the same. What to do?