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

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

英文描述:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.5.1:compile (default-compile) on project busiservice: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?

中文描述:此环境中未提供编译器,你可能使用jre运行而不是jdk。
引发原因:Eclipse默认在jre上运行,maven install 编译需要jdk中的编译器,而jre中并没有
问题解决:

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

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

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

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

再次执行maven install 打包

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

成功!

相关文章:

  • 2021-08-17
  • 2021-05-13
  • 2021-06-18
  • 2021-10-10
  • 2021-05-24
猜你喜欢
  • 2021-10-19
  • 2021-05-24
相关资源
相似解决方案