简体   繁体   中英

Quarkus error: release version 17 not supported

I'm new to learning quarkus and was trying to run a new project but here's an error for the same. Using Openjdk11.0 on Windows 10

error message

[INFO] Scanning for projects...
[INFO] 
[INFO] ---------------------------< org.acme:backe >---------------------------
[INFO] Building backe 1.0.0-SNAPSHOT                                           
[INFO] Invoking org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile @ backe
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 1 source file to C:\Users\btripathi\Project\backe\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.801 s
[INFO] Finished at: 2023-01-30T15:26:13+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.quarkus.platform:quarkus-maven-plugin:2.16.0.Final:dev (default-cli) on project backe: Fatal error compiling: error: **release version 17 not supported -> [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/MojoExecutionException

I checked with jdk versions and did try running but I don't think I understand the root cause of the issue.

Found the solution to the problem where I made changes to pom.xml file. change the maven compiler release to same as that of jdk version, it works for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM