【问题标题】:Java maven installing issue in intellij在 intellij 中安装 Java maven 问题
【发布时间】:2019-07-03 08:03:59
【问题描述】:

我下载了几种类型的微服务,我最初运行mvn cleanmvn install -DskipTests。所有这些时间它都发生在构建失败之下。

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.229 s
[INFO] Finished at: 2019-02-09T10:04:32+05:30
[INFO] Final Memory: 36M/130M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project invoice-microservice: Fatal error compiling: java.lang.ExceptionInInitializerError: com.sun.tools.javac.code.TypeTags -> [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

我的 maven 版本:Apache Maven 3.5.2

Maven 主页:/usr/share/maven

Java 版本:10.0.2, vendor: Oracle Corporation

Java 主页:/usr/lib/jvm/java-11-openjdk-amd64

默认语言环境:en_US, platform encoding: UTF-8

操作系统名称:"linux", version: "4.15.0-44-generic", arch: "amd64", family: "unix"

【问题讨论】:

标签: java maven installation microservices


【解决方案1】:

您需要在已安装的 JRE 中提供 JDK 路径而不是 JRE,如下所示,Windows->Preferences->Java->Installed JRE ->Edit

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-01-09
    • 1970-01-01
    • 1970-01-01
    • 2016-08-08
    • 2012-08-27
    • 2017-04-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多