Skip to content

Bump Java Version to 11 #89

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

kindlich
Copy link

Reason: The pom.xml specified Java 8 as source and target, which makes jitpack.io try to compile the code using JDK 8. However, the code can't compile at Java 8 (Class version <= 52.0) due to XML-Bind API needing Java 11 (Class <= 55.0)

ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project nextcloud-api: Compilation failure
[ERROR] /home/klenk/Dev/idm/libraries/nextcloud-java-api/src/main/java/org/aarboard/nextcloud/api/config/AppConfigAppsAnswer.java:[19,35] cannot access jakarta.xml.bind.annotation.XmlAccessType
[ERROR]   bad class file: /home/klenk/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/4.0.1/jakarta.xml.bind-api-4.0.1.jar(jakarta/xml/bind/annotation/XmlAccessType.class)
[ERROR]     class file has wrong version 55.0, should be 52.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.

Reason: We can't compile at Java 8 due to XML-Bind API needing Java 11

```
ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project nextcloud-api: Compilation failure
[ERROR] /home/klenk/Dev/idm/libraries/nextcloud-java-api/src/main/java/org/aarboard/nextcloud/api/config/AppConfigAppsAnswer.java:[19,35] cannot access jakarta.xml.bind.annotation.XmlAccessType
[ERROR]   bad class file: /home/klenk/.m2/repository/jakarta/xml/bind/jakarta.xml.bind-api/4.0.1/jakarta.xml.bind-api-4.0.1.jar(jakarta/xml/bind/annotation/XmlAccessType.class)
[ERROR]     class file has wrong version 55.0, should be 52.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.
```
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant