maven install项目时出错,提示信息如下:

[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile
(default-testCompile) on project springside-core: 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

解决方案:

    1. 下载java jdk,并安装java jdk。下载地址:http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html
    2. 在eclipse的菜单中,进入 Window > Preferences > Java > Installed JREs > Execution Environments,选择JavaSE-1.7, 在右侧选择你的JDK.

    3. 然后在maven菜单中使用 “update project ...”.

终于可以了,哈哈

最新文章

  1. 搭建域服务器和DNS
  2. 枚举Enum
  3. angularJS: shop chart
  4. Python 模块chardet安装 setup.py
  5. Android驱动开发之Hello实例
  6. RDBMS架构的开源DW/DSS引擎列表
  7. JS 获取 本周、本月、本季度、本年、上月、上周、上季度、去年
  8. JavaScript基本类型值与引用类型值
  9. getScript 按需加载javascript
  10. PHP实现递归的三种方法
  11. C# -abstract, override, virtual, new
  12. sersync 实时同步文件
  13. 不错的JQuery屏幕居中提示信息封装,使用方便,可集成到项目
  14. 创建access数据库表demo的封装
  15. Docker 查看镜像信息
  16. spring的DI.IoC是什么
  17. day24_python_1124
  18. java.lang.ClassNotFoundException: com.sun.xml.ws.spi.ProviderImpl解决办法
  19. 893. Groups of Special-Equivalent Strings 奇数偶数位上的相同数
  20. Linux基础-yum软件包管理

热门文章

  1. 35.Android之带删除按钮EditText学习
  2. USACO 3.2 butter 最短路
  3. POJ 1469 COURSES
  4. Linux Systemcall Int0x80方式、Sysenter/Sysexit Difference Comparation
  5. Centos是什么
  6. apache安装后编译新模块
  7. 修改php执行用户,并使其拥有root权限
  8. Iterator&Vector应用实例
  9. spring mvc实现登录+异常
  10. [bug]使用SharpZipLib遇到中文名称乱码问题