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 @ 2020-05-19 10:36  任国强  阅读(411)  评论(0编辑  收藏  举报