在eclipse 运行 mvn install 报错:
“No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?”
解决办法:
进入 Window > Preferences > Java > Installed JREs > 检查 installed JREs.这里必须有一个JDK
进入 Window > Preferences > Java > Installed JREs > Execution Environments
选择JavaSE-1.6, 在右侧选择jdk.然后在maven菜单中使用 “update project configuration”.