[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project boot-starter-dubbo: Compilation failure
[ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?
[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
出现这种情况的时候,解决方案:
window->Preference->java->installs JREs中将jre的运行环境转换成JDK,点击edit选择安装的jdk目录
最后在maven菜单中选择:Update Project更新下工程。
原因:在启动maven>tomcat>plugin时,
用的是c:\Program Files\Java\jre7\ben\javaws.exe
应该使用的是c:\Program Files\Java\jdk1.7.0_17\ben\javaws.exe