eclipse下安装maven的一点总结

     第一次写这种技术博文,有点不值如何描述~~~ 主要是为了总结一下自己在这个过程中的一点收获,以备自己或他人后用。

     我用的eclipse是  Indigo Release版,看网上大概都是数字版本,搜了下,如何将文字版对应到数字版本,参考如下博文:

http://blog.csdn.net/rui_dlut/article/details/6764137

     有了数字版本信息,就可以下载对应的插件进行安装了。

     在安装maven的时候遇到的主要问题是网上各种博文给出的链接都是不能用的,下面给出官网:http://m2eclipse.sonatype.org/installing-m2eclipse.html 此网页中有m2eclipse Core Update Site: http://m2eclipse.sonatype.org/sites/m2e 选择这个链接步骤具体如下:

To install this plugin in the Eclipse IDE:

  1. Select Help > Install New Software. This should display the "Install" dialog.
  2. Paste the Update Site URL into the field named "Work with:" and press Enter. Pressing Enter should cause Eclipse to update list of available plugins and components.
  3. Choose the component listed under m2eclipse: "Maven Integration for Eclipse (Required)".
  4. Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.
  5. Click Next and agree to the terms of the Eclipse Public License v1.0.
  6. Click Finish to begin the installation process. Eclipse will then download and install the necessary components.
  7. Once the installation process is finished, Eclipse will ask you if you want to restart the IDE. Sonatype strongly recommends that you restart your IDE after installing m2eclipse.

以上是官网给出的步骤,不存在任何问题。但安装过程可能遇到如下问题:

Cannot complete the install because one or more required items could not be found.
  Software being installed: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
  Missing requirement: Maven Integration for Eclipse (Editors) 0.12.1.20110112-1712 (org.maven.ide.eclipse.editor 0.12.1.20110112-1712) requires 'bundle org.eclipse.zest.core 0.0.0' but it could not be found
  Cannot satisfy dependency:
    From: Maven Integration for Eclipse (Required) 0.12.1.20110112-1712 (org.maven.ide.eclipse.feature.feature.group 0.12.1.20110112-1712)
    To: org.maven.ide.eclipse.editor [0.12.1.20110112-1712]

参考博文:http://gzenzen.iteye.com/blog/991284 可顺利解决;

至此maven安装完毕。重新启动eclipse,可能遇到如下问题:

每次开ECLIPSE后都会出现下面的问题
4/19/08 2:40:55 PM PDT: Eclipse is running in a JRE, but a JDK is required
  Some Maven plugins may not work when importing projects or updating source folders.

参考博文:http://blog.csdn.net/dingmao6790229/article/details/5900888  最后一项的处理,即可

至此完成安装。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值