eclipse中用maven打包报错排查


1. 在springboot项目中用maven打包时,报错如下:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project aipp: Fatal error compiling: 无效的标记: -parameters -> [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

原因是我有两个jdk,一个1.7的,一个1.8的,以前的项目是用1.7的,现在这个springboot项目用1.8,虽然项目的Java build path的libraries用的1.8的jre,但是但是

在Windows-->Java-->Installed JREs里面还是勾选了1.7的jdk,导致打包时报上面的错误,记得一定要改为勾选1.8


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM