zoukankan      html  css  js  c++  java
  • eclipse中用maven打包报错排查

    1. 在springboot项目中用maven打包时,报错如下:

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile (default-compile) on project aipp: Fatal error compiling: 无效的标记: -parameters -> [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/MojoExecutionException

    原因是我有两个jdk,一个1.7的,一个1.8的,以前的项目是用1.7的,现在这个springboot项目用1.8,虽然项目的Java build path的libraries用的1.8的jre,但是但是

    在Windows-->Java-->Installed JREs里面还是勾选了1.7的jdk,导致打包时报上面的错误,记得一定要改为勾选1.8

  • 相关阅读:
    纪伯伦:我曾七次鄙视我的灵魂
    字典和集合
    元组
    列表
    字符串
    数值类型
    内置函数了解一下
    了解Python
    centos7安装mysql数据库
    xenserver 上传centos6.8镜像
  • 原文地址:https://www.cnblogs.com/yangchuncool/p/8650593.html
Copyright © 2011-2022 走看看