Maven error: lambda expressions are not supported in -source 1.7

[INFO]
[INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ crm ---
[INFO] Deleting /root/.jenkins/workspace/pre-crm-main/target
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ crm ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 66 resources
[INFO] Copying 426 resources
[INFO]
[INFO] --- maven-compiler-plugin:2.3.2:compile (default-compile) @ crm ---
[INFO] Compiling 745 source files to /root/.jenkins/workspace/pre-crm-main/target/classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /root/.jenkins/workspace/pre-crm-main/src/main/java/com/jeecg/crm/service/impl/LeadServiceImpl.java:[2529,24] error: lambda expressions are not supported in -source 1.7
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.230 s
[INFO] Finished at: 2020-05-19T10:27:31+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project crm: Compilation failure
[ERROR] /root/.jenkins/workspace/pre-crm-main/src/main/java/com/jeecg/crm/service/impl/LeadServiceImpl.java:[2529,24] error: lambda expressions are not supported in -source 1.7
[ERROR]
[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
Build step 'Invoke top-level Maven targets' marked build as failure
SSH: Current build result is [FAILURE], not going to run.
Finished: FAILURE

<build>
	<finalName>${project.artifactId}</finalName>
	<plugins>
		<plugin>
			<artifactId>maven-compiler-plugin</artifactId>
			<version>2.3.2</version>
			<configuration>
				<source>1.7</source>
				<target>1.7</target>
				<encoding>UTF-8</encoding>
			</configuration>
		</plugin>
posted @   任国强  阅读(422)  评论(0编辑  收藏  举报
编辑推荐:
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· Manus重磅发布:全球首款通用AI代理技术深度解析与实战指南
· 开源Multi-agent AI智能体框架aevatar.ai,欢迎大家贡献代码
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· AI技术革命,工作效率10个最佳AI工具
历史上的今天:
2017-05-19 Cron Expression的用途
2017-05-19 JavaScript解决一个带验证的Form两个Submit事件(一个页面保持不动【AJAX实现】,一个页面提交并跳转)的场景
2017-05-19 JavaScript全局变量的本质及页面共享问题
2017-05-19 WIN10护眼色
2017-05-19 Java基础实践一:for关键字的实现原理
2016-05-19 Apache的Thrift引发的编译思考
2016-05-19 QQ的小秘密
点击右上角即可分享
微信分享提示