No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK问题的解决办法: 错误原因是由于maven3.1版本要求运行在jdk上,而报错是因为现在运行在jre上: 解决方式如下: 第一步:打开Preferences 第二步:Add jre 第三步: 第四步: 第五步:应用到出错的项目上: 在出错的项目处点击右键:Build path>configure path.. 第六步: 第七步: 第八步: 第九步: 之后再次运行项目即可正常使用。