maven编译报异常

Blade 已结 2 2179
asit
asit 2020-11-23 08:51

一、该问题的重现步骤是什么?

1. 对项目进行maven编译,脚本:mvn clean compile

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

BladeX-Tool: 2.7.1

MacOS: 11.0.1 Big  Sur


四、请提供详细的错误堆栈信息,这很重要。

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 4.425 s

[INFO] Finished at: 2020-11-23T08:46:15+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project asit-core-auto: Compilation failure

[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

[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

[ERROR]

[ERROR] After correcting the problems, you can resume the build with the command

[ERROR]   mvn -rf :asit-core-auto


五、若有更多详细信息,请在下面提供。

1234.png

2条回答
  •  asit
    asit (楼主)
    2020-11-23 08:53

    # java -version

    java version "1.8.0_191"

    Java(TM) SE Runtime Environment (build 1.8.0_191-b12)

    Java HotSpot(TM) 64-Bit Server VM (build 25.191-b12, mixed mode)


    # mvn -v

    Maven home: /usr/local/Cellar/maven/3.5.4/libexec

    Java version: 1.8.0_191, vendor: Oracle Corporation, runtime: /Library/Internet Plug-Ins/JavaAppletPlugin.plugin/Contents/Home

    Default locale: zh_CN, platform encoding: UTF-8

    OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

提交回复