You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When compiling quickstarters in pipeline, it fails because openjdk 17 is not available.
The package is not installed during docker build, but only a warning is shown.
Change to jdk 17 (script use-j17.sh) is not able to switch, but it just shows a warning
When maven tries to compile, an error is shown.
To Reproduce
Steps to reproduce the behavior:
Provision a spring-boot quickstarter in an ods-box and try to build the component.
Expected behavior
Installation of jdk 17 succeeds and compilation too.
Screenshots
Affected version (please complete the following information):
OpenShift: [3.11]
OpenDevStack [4.x]
Log Output (ensure to remove any confidential information like tokens, project names, etc.
15:05:00 amazon-ebs: Switching to java 17:
15:05:00 amazon-ebs: /usr/lib/jvm//bin/java has not been configured as an alternative for java
15:05:00 amazon-ebs: Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
15:05:00 amazon-ebs: javac 1.8.0_332
15:05:00 amazon-ebs: Switching to java 11:
15:05:00 amazon-ebs: Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
15:05:00 amazon-ebs: openjdk version "11.0.15" 2022-04-19 LTS
15:05:00 amazon-ebs: OpenJDK Runtime Environment 18.9 (build 11.0.15+9-LTS)
15:05:00 amazon-ebs: OpenJDK 64-Bit Server VM 18.9 (build 11.0.15+9-LTS, mixed mode, sharing)
15:05:00 amazon-ebs: Picked up JAVA_TOOL_OPTIONS: -XX:+UnlockExperimentalVMOptions -Dsun.zip.disableMemoryMapping=true
15:05:01 amazon-ebs: javac 11.0.15
15:05:01 amazon-ebs: /usr/lib/jvm/jre
Compilation error:
18:22:19 amazon-ebs: > Task :compileJava FAILED
18:22:19 amazon-ebs:
18:22:19 amazon-ebs: FAILURE: Build failed with an exception.
18:22:19 amazon-ebs:
18:22:19 amazon-ebs: * What went wrong:
18:22:19 amazon-ebs: Execution failed for task ':compileJava'.
18:22:19 amazon-ebs: > error: invalid source release: 17
...
amazon-ebs: * Exception is:
18:22:19 amazon-ebs: org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':compileJava'.
...
18:22:19 amazon-ebs: Caused by: java.lang.IllegalArgumentException: error: invalid source release: 17
...
Additional context
The packages java-17-openjdk-devel java-17-openjdk-jmods are no more available for centos 7, not even in the centos archive.
We see two solutions:
1- Revert to openjdk 11
2- Upgrade to centos 8 (but we need to evaluate if openshift 3.11 will work as expected in centos 8, because upgrading the underlying os of the host to centos 8 would be mandatory).
The text was updated successfully, but these errors were encountered:
Describe the bug
When compiling quickstarters in pipeline, it fails because openjdk 17 is not available.
The package is not installed during docker build, but only a warning is shown.
Change to jdk 17 (script use-j17.sh) is not able to switch, but it just shows a warning
When maven tries to compile, an error is shown.
To Reproduce
Steps to reproduce the behavior:
Provision a spring-boot quickstarter in an ods-box and try to build the component.
Expected behavior
Installation of jdk 17 succeeds and compilation too.
Screenshots
Affected version (please complete the following information):
Log Output (ensure to remove any confidential information like tokens, project names, etc.
Installation warning messages:
Switch to openjdk 17 warning messages:
Compilation error:
Additional context
The packages java-17-openjdk-devel java-17-openjdk-jmods are no more available for centos 7, not even in the centos archive.
We see two solutions:
1- Revert to openjdk 11
2- Upgrade to centos 8 (but we need to evaluate if openshift 3.11 will work as expected in centos 8, because upgrading the underlying os of the host to centos 8 would be mandatory).
The text was updated successfully, but these errors were encountered: