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:
- Select Help > Install New Software. This should display the "Install" dialog.
- 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.
- Choose the component listed under m2eclipse: "Maven Integration for Eclipse (Required)".
- Click Next. Eclipse will then check to see if there are any issues which would prevent a successful installation.
- Click Next and agree to the terms of the Eclipse Public License v1.0.
- Click Finish to begin the installation process. Eclipse will then download and install the necessary components.
- 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,可能遇到如下问题:
Some Maven plugins may not work when importing projects or updating source folders.
参考博文:http://blog.csdn.net/dingmao6790229/article/details/5900888 最后一项的处理,即可
至此完成安装。