mvn命令异常:Perhaps you are running on a JRE rather than a JDK? 异常已解决

Posted 谙忆

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mvn命令异常:Perhaps you are running on a JRE rather than a JDK? 异常已解决相关的知识,希望对你有一定的参考价值。

mvn命令异常:No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK? 【异常已解决】

环境信息

Mac版本:12.0.1 (21A559) macOS Monterey
IDEA版本:IntelliJ IDEA 2021.2.3 (Ultimate Edition) 内部版本号 #IU-212.5457.46,October 12, 2021 构建

maven runtime路径问题。

执行命令

mvn clean deploy -P sonatype-oss-release -Dgp

以上是关于mvn命令异常:Perhaps you are running on a JRE rather than a JDK? 异常已解决的主要内容,如果未能解决你的问题,请参考以下文章

mvn命令异常:Perhaps you are running on a JRE rather than a JDK? 异常已解决

mac Big Sur系统 mvn打包报错:No compiler is provided in this environment. Perhaps you are running on a JRE

解决Perhaps you are running on a JRE rather than a JDK?问题

Perhaps you are running on a JRE rather than a JDK

Maven Install报错:Perhaps you are running on a JRE rather than a JDK?

Maven项目出现Perhaps you are running on a JRE rather than a JDK?