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>
  • 相关阅读:
    传说中的灵感
    错误: Sys.WebForms.PageRequestManagerServerErrorException: 只能在执行 Render() 的过程中调用 RegisterForEventValidation;
    只能在执行 Render() 的过程中调用 RegisterForEventValidation
    在aspx实现用户控件内Web控件的事件
    Asp.net网页上嵌入Media Player播放
    为临时表动态添加字段
    如何防止头文件被重复包含、嵌套包含
    Linux C SQLite3 编程
    Android开源项目源码下载(不断更新中)
    Android程序员必看之Android六大优势
  • 原文地址:https://www.cnblogs.com/rgqancy/p/12915519.html
Copyright © 2011-2022 走看看