failing jni compilation on CentOS 8.2/8.2 with latest packages

FS
Federico Strati
Tue, Jan 5, 2021 4:04 PM

Hello,

I got this error from the jni compilation:


JAVA_HOME="/usr/lib/jvm/java-15-openjdk-15.0.1.9-2.rolling.el8.x86_64-fastdebug"
mvn -f src/client/jni/pom.xml clean install
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------< org.orangefs.usrint:orangefs-jni


[INFO] Building orangefs-jni 2.9.7
[INFO] --------------------------------[ jar
]---------------------------------
[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ orangefs-jni ---
[INFO] Deleting /root/orangefs-v.2.9.8.tar/src/client/jni/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @
orangefs-jni ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory
/root/orangefs-v.2.9.8.tar/src/client/jni/src/main/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @
orangefs-jni ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 14 source files to
/root/orangefs-v.2.9.8.tar/src/client/jni/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] Source option 5 is no longer supported. Use 7 or later.
[ERROR] Target option 5 is no longer supported. Use 7 or later.
[INFO] 2 errors
[INFO] -------------------------------------------------------------
[INFO]

[INFO] BUILD FAILURE
[INFO]

[INFO] Total time: 2.547 s
[INFO] Finished at: 2021-01-05T16:38:53+01:00
[INFO]

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project orangefs-jni: Compilation failure:
Compilation failure:
[ERROR] Source option 5 is no longer supported. Use 7 or later.
[ERROR] Target option 5 is no longer supported. Use 7 or later.
[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
make: Nothing to be done for 'all'.

for java I use the latest packages from CentOS 8.2:

dnf install java-latest-openjdk.x86_64

dnf install java-latest-openjdk-devel-fastdebug.x86_64

dnf install maven

Any idea on the error cause ?

Thanks in advance

Federico

Hello, I got this error from the jni compilation: ----------------------------------- JAVA_HOME="/usr/lib/jvm/java-15-openjdk-15.0.1.9-2.rolling.el8.x86_64-fastdebug" mvn -f src/client/jni/pom.xml clean install [INFO] Scanning for projects... [INFO] [INFO] ------------------< org.orangefs.usrint:orangefs-jni >------------------ [INFO] Building orangefs-jni 2.9.7 [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ orangefs-jni --- [INFO] Deleting /root/orangefs-v.2.9.8.tar/src/client/jni/target [INFO] [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ orangefs-jni --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /root/orangefs-v.2.9.8.tar/src/client/jni/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ orangefs-jni --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 14 source files to /root/orangefs-v.2.9.8.tar/src/client/jni/target/classes [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] Source option 5 is no longer supported. Use 7 or later. [ERROR] Target option 5 is no longer supported. Use 7 or later. [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 2.547 s [INFO] Finished at: 2021-01-05T16:38:53+01:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project orangefs-jni: Compilation failure: Compilation failure: [ERROR] Source option 5 is no longer supported. Use 7 or later. [ERROR] Target option 5 is no longer supported. Use 7 or later. [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 make: Nothing to be done for 'all'. ----------------------------------- for java I use the latest packages from CentOS 8.2: dnf install java-latest-openjdk.x86_64 dnf install java-latest-openjdk-devel-fastdebug.x86_64 dnf install maven Any idea on the error cause ? Thanks in advance Federico