jhipster - Jhispter cannot run - Stack Overflow
After generating the application using JHipster, I tried to run it, but it failed.The error seems strange.
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- enforcer:3.5.0:enforce (enforce-versions) @ jhipster-sample-application ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.607 s
[INFO] Finished at: 2025-01-04T16:19:00+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.5.0:enforce (enforce-versions) on project jhipster-sample-application:
[ERROR] Rule 1: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message:
[ERROR] You are running an incompatible version of Java. JHipster supports JDK 17 to 23.
[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]
However, my Java version is 22.0.2, which should be supported according to the error message. Here is the output of java --version
:
java --version
java 22.0.2 2024-07-16
Java(TM) SE Runtime Environment (build 22.0.2+9-70)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
I am confused. Can anyone help me with this issue?
After generating the application using JHipster, I tried to run it, but it failed.The error seems strange.
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- enforcer:3.5.0:enforce (enforce-versions) @ jhipster-sample-application ---
[INFO] Rule 0: org.apache.maven.enforcer.rules.version.RequireMavenVersion passed
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.607 s
[INFO] Finished at: 2025-01-04T16:19:00+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:3.5.0:enforce (enforce-versions) on project jhipster-sample-application:
[ERROR] Rule 1: org.apache.maven.enforcer.rules.version.RequireJavaVersion failed with message:
[ERROR] You are running an incompatible version of Java. JHipster supports JDK 17 to 23.
[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/MojoExecutionException
However, my Java version is 22.0.2, which should be supported according to the error message. Here is the output of java --version
:
java --version
java 22.0.2 2024-07-16
Java(TM) SE Runtime Environment (build 22.0.2+9-70)
Java HotSpot(TM) 64-Bit Server VM (build 22.0.2+9-70, mixed mode, sharing)
I am confused. Can anyone help me with this issue?
Share Improve this question asked yesterday colommarcolommar 9 New contributor colommar is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.1 Answer
Reset to default 0The error message is saying you have to use Java 21 or 23. If you want to use Java 22, you'll need to adjust the enforcer plugin's configuration in your pom.xml
.
- 已故打车软件的反思 :我们为何被滴滴打败
- 移动互联网生态基石平台的吸引力分析
- c++ - What is the fastest way to upcast std::shared_ptr<std::unique_ptr<T>>? - Stack Overflow
- How do I convert a saved tensorflow model to pytorch which is not compatible with ONNX? - Stack Overflow
- Power apps - Multiple Sharepoint lists combine as collection and display in one gallery - Stack Overflow
- Prisma create: Typescript error in field data - Stack Overflow
- javascript - In Quill, how to add one button to the toolbar to add some text? - Stack Overflow
- javascript - Is there a way to get the difference between 2 points by click and hold with the mouse on a line on chart.js? - Sta
- typescript - Issues with generic type narrowing on merged records - Stack Overflow
- batch file - Command segment in .omp.json Oh-my-posh theme - Stack Overflow
- starknet - How to generate and verify a STARK proof from a Cairo program locally? - Stack Overflow
- tensorflow - Error when loading old .h5 file with latest Keras - Stack Overflow
- javascript - Is there any way of getting an error message from the browsers XslProcessor object when using xsl:message terminate
- Why is my bot not able to detect when a user leaves in Telegram? - Stack Overflow
- ios - Display videos in React Native does not work in production mode but in Simulator [expo-media-libraryexpo-av] - Stack Overf
- angular - How to resolve vitest errors; stylesheet imports and dynamically fetched modules - Stack Overflow
- python - How Can I Use GPU to Accelerate Image Augmentation? - Stack Overflow