Hello I am trying to build payara server from source code and I get the following compilation error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.0:compile (default-compile) on project healthcheck-cpool: Compilation failure: Compilation failure:
[ERROR] payara_project/Payara/nucleus/payara-modules/healthcheck-cpool/src/main/java/fish/payara/nucleus/healthcheck/cpool/ConnectionPoolHealthCheck.java:[165,22] reference to Module is ambiguous
[ERROR] both interface com.sun.enterprise.config.serverbeans.Module in com.sun.enterprise.config.serverbeans and class java.lang.Module in java.lang match
[ERROR] payara_project/Payara/nucleus/payara-modules/healthcheck-cpool/src/main/java/fish/payara/nucleus/healthcheck/cpool/ConnectionPoolHealthCheck.java:[167,26] reference to Module is ambiguous
[ERROR] both interface com.sun.enterprise.config.serverbeans.Module in com.sun.enterprise.config.serverbeans and class java.lang.Module in java.lang match
Maven command: mvn clean install -DskipTests -PQuickBuild -T 1C
Maven version: v3.6.3
Java version: openjdk version "11.0.12" 2021-07-20
OpenJDK Runtime Environment Temurin-11.0.12+7 (build 11.0.12+7)
OpenJDK 64-Bit Server VM Temurin-11.0.12+7 (build 11.0.12+7, mixed mode)
Did anyone else get this issue before ?