- 一 、No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
- 在项目名的地方鼠标右键单击
-
选择 Build Path
- 选择 Configure Build Path (如图所示)
- 选择 Java Build Path
- 在 Libraries 中选择 你的JRE 将他移除
- 然后选择 右边的 Add Library
- 选择 JRE System Library
- 选择Next
- 选择 Alternate JRE
- 点击右边的 Installed JREs
- 点击 Installed JREs 面板中右边 Edit
- 点击 Directory 将 你的 jre 换成 Jdk的安装目录
二、 -Dmaven.multiModuleProjectDirectory system property
is not set. Check $M2_HOME environment variable and mvn script match.
- 修改Installed Jres 的 Default VM arguments
- -Dmaven.multiModuleProjectDirectory=$M2_HOME