Eclipse: Troubleshooting of error reports packaged with Maven

1. When packaging with maven in a springboot project, the following error is reported.

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project aipp: Fatal error compiling: Invalid marks: -parameters -> [Help 1]
[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] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1]

The reason is that I have two jdk’s, one 1.7 and one 1.8, my previous project was using 1.7 and now this springboot project is using 1.8, although the project’s Java build path libraries use 1.8 jre, but but

In Windows–>Java–>Installed JREs inside or check the 1.7 jdk, resulting in the above error when packaging, remember to change to check the 1.8


Similar Posts: