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>
  • 相关阅读:
    python Windows环境下文件路径问题
    pycharm 取消连按两下shift出现的全局搜索
    python2 与 python3的区别
    Python安装PyOpenGL
    Protobuffer学习文档
    python bin文件处理
    python 项目自动生成requirements.txt文件
    pytest文档7-pytest-html生成html报告
    python from __future__ import division
    细说 Java 的深拷贝和浅拷贝
  • 原文地址:https://www.cnblogs.com/rgqancy/p/12915519.html
Copyright © 2011-2022 走看看