spring-io / start.spring.io

https://start.spring.io
Apache License 2.0
2.22k stars 906 forks source link

question of maven build start-site. #1201

Closed ameue closed 1 year ago

ameue commented 1 year ago
[INFO] 
[INFO] --- resources:3.3.1:resources (default-resources) @ start-site ---
[INFO] Copying 1 resource from src/main/resources to target/classes
[INFO] Copying 7 resources from src/main/resources to target/classes
[INFO] 
[INFO] --- flatten:1.4.1:flatten (flatten) @ start-site ---
[INFO] Generating flattened POM of project io.spring.start:start-site:jar:0.0.1-SNAPSHOT...
[INFO] 
[INFO] --- compiler:3.11.0:compile (default-compile) @ start-site ---
[INFO] Changes detected - recompiling the module! :source
[INFO] Compiling 129 source files with javac [debug release 17] to target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR : 
[INFO] -------------------------------------------------------------
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for start.spring.io 0.0.1-SNAPSHOT:
[INFO] 
[INFO] start.spring.io .................................... SUCCESS [  0.761 s]
[INFO] start.spring.io client ............................. SUCCESS [ 32.238 s]
[INFO] start.spring.io website ............................ FAILURE [ 19.847 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  53.336 s
[INFO] Finished at: 2023-05-31T22:44:13+08:00
[INFO] ------------------------------------------------------------------------
[WARNING] 
[WARNING] Plugin validation issues were detected in 3 plugin(s)
[WARNING] 
[WARNING]  * io.github.git-commit-id:git-commit-id-maven-plugin:4.9.9
[WARNING]  * com.github.eirslett:frontend-maven-plugin:1.12.1
[WARNING]  * io.spring.javaformat:spring-javaformat-maven-plugin:0.0.29
[WARNING] 
[WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
[WARNING] 
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.11.0:compile (default-compile) on project start-site: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[ERROR] 
[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/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :start-site

jdk 1.8.0_371 Maven 3.9.2 clone from this repository,then execute these following commands on mac book pro terminal: cd start.srping.io mvn clean install after few seconds,I got errors in terminal . then I want to add source 1.8 and target 1.8 tags for maven-compiler-plugin,but I did not found maven-compiler-plugin tag in any pom.xml. otherwise, I have change spring-boot-maven-plugin version to 2.7.0 in start-site pom.xml git-commit-id-maven-plugin version to 4.9.9 in start-site pom.xml spring-javaformat.version version to 0.0.29 in root pom.xml because I use jdk1.8. how do I do for 'mvn clean install' to success next?

snicoll commented 1 year ago

because I use jdk1.8.

The README mentions that you need Java 17 to build this project.