Welcome to the Linux Foundation Forum!

Lab 6 build fail after updating spring-boot version

tutug
tutug Posts: 1
edited January 12 in LFS262 Class Forum

As per the instruction to fix the SAST error after update the spring-boot version to 3.4.1 which is the latest, I got the following error.

+ mvn compile

[INFO] Scanning for projects...

[INFO] 

[INFO] ---------------------------< com.demo:demo >----------------------------

[INFO] Building demo 0.0.1-SNAPSHOT

[INFO] --------------------------------[ jar ]---------------------------------

[INFO] 

[INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ demo ---

[INFO] Copying 1 resource from src/main/resources to target/classes

[INFO] Copying 0 resource from src/main/resources to target/classes

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  1.071 s

[INFO] Finished at: 2025-01-12T01:12:30Z

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project demo: The plugin org.apache.maven.plugins:maven-compiler-plugin:3.13.0 requires Maven version 3.6.3 -> [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/PluginIncompatibleException

script returned exit code 1

I am not sure which part of the code to change to fix the error. Help will be appreciated

Categories

Upcoming Training