[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project news_search: Compilation failure: Compilation failure:
[ERROR] /y/ESClientSpringFactory.java:[71,63] -source 1.5 中不支持 lambda 表达式
[ERROR] (请使用 -source 8 或更高版本以启用 lambda 表达式)
[ERROR] /lasticsearchUtil.java:[180,27] -source 1.5 中不支持 lambda 表达式
[ERROR] (请使用 -source 8 或更高版本以启用 lambda 表达式)
[ERROR] lasticsearchUtil.java:[339,62] -source 1.5 中不支持 diamond 运算符
[ERROR] (请使用 -source 7 或更高版本以启用 diamond 运算符)
[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 wit
maven install出错:Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (d
最新推荐文章于 2024-07-15 10:52:15 发布
当遇到Maven安装时的编译错误,检查JDK配置无果,问题可能在于Maven的settings.xml中未指定JDK版本。通过编辑settings.xml文件,指定JDK版本,可以成功解决此类问题。
摘要由CSDN通过智能技术生成