Welcome to the Linux Foundation Forum!

Lab 6 build fail after updating spring-boot version

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.

  1. + mvn compile
  2.  
  3. [INFO] Scanning for projects...
  4.  
  5. [INFO]
  6.  
  7. [INFO] ---------------------------< com.demo:demo >----------------------------
  8.  
  9. [INFO] Building demo 0.0.1-SNAPSHOT
  10.  
  11. [INFO] --------------------------------[ jar ]---------------------------------
  12.  
  13. [INFO]
  14.  
  15. [INFO] --- maven-resources-plugin:3.3.1:resources (default-resources) @ demo ---
  16.  
  17. [INFO] Copying 1 resource from src/main/resources to target/classes
  18.  
  19. [INFO] Copying 0 resource from src/main/resources to target/classes
  20.  
  21. [INFO] ------------------------------------------------------------------------
  22.  
  23. [INFO] BUILD FAILURE
  24.  
  25. [INFO] ------------------------------------------------------------------------
  26.  
  27. [INFO] Total time: 1.071 s
  28.  
  29. [INFO] Finished at: 2025-01-12T01:12:30Z
  30.  
  31. [INFO] ------------------------------------------------------------------------
  32.  
  33. [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]
  34.  
  35. [ERROR]
  36.  
  37. [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
  38.  
  39. [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  40.  
  41. [ERROR]
  42.  
  43. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  44.  
  45. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginIncompatibleException
  46.  
  47. script returned exit code 1

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

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training