zoukankan      html  css  js  c++  java
  • 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>
  • 相关阅读:
    字符、字符串和文本处理
    接口
    泛型
    事件
    Expression表达式树 案例
    栈帧
    属性
    方法
    常量和字段
    Dynamic
  • 原文地址:https://www.cnblogs.com/rgqancy/p/12915519.html
Copyright © 2011-2022 走看看