• idea maven 报-source 1.5 中不支持 diamond 运算符


    "C:Program FilesJavajdk1.8.0_144injava" -Dmaven.multiModuleProjectDirectory=D:filedqs_jx "-Dmaven.home=C:Program FilesJetBrainsIntelliJ IDEA 2017.3pluginsmavenlibmaven3" "-Dclassworlds.conf=C:Program FilesJetBrainsIntelliJ IDEA 2017.3pluginsmavenlibmaven3inm2.conf" "-javaagent:C:Program FilesJetBrainsIntelliJ IDEA 2017.3libidea_rt.jar=51512:C:Program FilesJetBrainsIntelliJ IDEA 2017.3in" -Dfile.encoding=UTF-8 -classpath "C:Program FilesJetBrainsIntelliJ IDEA 2017.3pluginsmavenlibmaven3ootplexus-classworlds-2.5.2.jar" org.codehaus.classworlds.Launcher -Didea.version=2017.3.1 org.mortbay.jetty:jetty-maven-plugin:8.1.15.v20140411:run
    [INFO] Scanning for projects...
    [WARNING] 
    [WARNING] Some problems were encountered while building the effective model for com.dqs:dqs:war:0.0.1-SNAPSHOT
    [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.apache.axis:axis:jar -> duplicate declaration of version 1.3 @ line 264, column 21
    [WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: com.jfinal:jfinal:jar -> version 3.0 vs 1.9 @ line 269, column 21
    [WARNING] 
    [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
    [WARNING] 
    [WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
    [WARNING] 
    [INFO]                                                                         
    [INFO] ------------------------------------------------------------------------
    [INFO] Building dqs 0.0.1-SNAPSHOT
    [INFO] ------------------------------------------------------------------------
    [INFO] 
    [INFO] >>> jetty-maven-plugin:8.1.15.v20140411:run (default-cli) > test-compile @ dqs >>>
    [INFO] 
    [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ dqs ---
    [INFO] Using 'UTF-8' encoding to copy filtered resources.
    [INFO] Copying 8 resources
    [INFO] 
    [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ dqs ---
    [INFO] Changes detected - recompiling the module!
    [INFO] Compiling 297 source files to D:filedqs_jx	argetclasses
    [INFO] -------------------------------------------------------------
    [ERROR] COMPILATION ERROR : 
    [INFO] -------------------------------------------------------------
    [ERROR] /D:/file/dqs_jx/src/main/java/com/dqs/controller/ReportController.java:[104,61] -source 1.5 中不支持 diamond 运算符
      (请使用 -source 7 或更高版本以启用 diamond 运算符)
    [INFO] 1 error
    [INFO] -------------------------------------------------------------
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 4.031 s
    [INFO] Finished at: 2017-12-22T09:29:07+08:00
    [INFO] Final Memory: 13M/207M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project dqs: Compilation failure
    [ERROR] /D:/file/dqs_jx/src/main/java/com/dqs/controller/ReportController.java:[104,61] -source 1.5 中不支持 diamond 运算符
    [ERROR] (请使用 -source 7 或更高版本以启用 diamond 运算符)
    [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
    
    Process finished with exit code 1

    需要修改 project setting 中的

    划重点!还有一个地方!就是

    需要跟刚刚的setting 的javac版本对应

  • 相关阅读:
    【Abode Air程序开发】在设备上进行安装
    【Abode Air程序开发】移动设备、桌面和浏览器应用程序开发的差异
    【Abode Air程序开发】移动设备、桌面和浏览器应用程序开发的差异
    【Abode Air程序开发】Flex air文件打包和运行
    【Abode Air程序开发】Flex air文件打包和运行
    【Adobe Air程序开发】eclipse安装flash builder 4.7插件以及java、flex整合开发
    【Adobe Air程序开发】eclipse安装flash builder 4.7插件以及java、flex整合开发
    【Adobe Air程序开发】用Adobe Flex3开发AIR应用程序–入门指南
    【Adobe Air程序开发】用Adobe Flex3开发AIR应用程序–入门指南
    【JAVA开发】eclipse最新版本Eclipse Neon
  • 原文地址:https://www.cnblogs.com/5icuke/p/8084524.html
Copyright © 2020-2023  润新知