Openjdk-11-jdk is already the newest version (10.0.1+10-3ubuntu1).Ġ to upgrade, 0 to newly install, 0 to remove and 2 not to upgrade.įor me a deceivingly similar error, specifically Failed to execute goal :maven-compiler-plugin:3.8.1:compile (default-compile) on project nospringboot: Fatal error compiling: : Version '14' not supported -> I think this is an issue with the Ubuntu openjdk-11-jdk package: ➜ ~ sudo apt install openjdk-11-jdk ➜ ~ /usr/lib/jvm/java-11-openjdk-amd64/bin/javac -version OpenJDK 64-Bit Server VM (build 10.0.1+10-Ubuntu-3ubuntu1, mixed mode)Ĭould Java 11 identifying itself as "10.0.1" be causing the problem? If I modify my pom.xml to 10 then it builds with no issue, even though I do not have Java 10 installed. OpenJDK Runtime Environment (build 10.0.1+10-Ubuntu-3ubuntu1) ➜ /usr/lib/jvm/java-11-openjdk-amd64/bin/java -version Java home: /usr/lib/jvm/java-11-openjdk-amd64ĭefault locale: en_GB, platform encoding: UTF-8 Java version: 10.0.1, vendor: Oracle Corporation Here are the Maven and Java versions which I am using: ➜ mvn -version For more information about the errors and possible solutions, please read the following articles: Re-run Maven using the -X switch to enable full debug logging. To see the full stack trace of the errors, re-run Maven with the -e switch. Failed to execute goal :maven-compiler-plugin:3.8.0:compile (default-compile) on project service: Fatal error compiling: release version 11 not supported -> Compiling 80 source files to /home/mip/service/target/classes Changes detected - recompiling the module! maven-compiler-plugin:3.8.0:compile (default-compile) service. When I try to build using Maven: ➜ mvn clean compile I'm unable to build using Java 11 with the latest version of the maven-compiler-plugin.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |