**eclipse集成springboot 插件(离线安装,含解决Cannot complete the install because one or more required items could)

**

首先,确认eclipse的版本(这里要求不是太严,只要高版本的eclipse能集成低版本的springboot)
这里以我的eclipse版本为例。

我下载的springboot插件是springsource-tool-suite-3.8.3.RELEASE-e4.6.2-updatesite.zip
通过安装离线工具eclipse: help > Install New Software > add

安装过程中如果报了类似这样的错误
Cannot complete the install because one or more required items could not be found.
Software being installed: Groovy-Eclipse Feature 2.9.1.xx-201411061336-e42-RELEASE (org.codehaus.groovy.eclipse.feature.feature.group 2.9.1.xx-201411061336-e42-RELEASE)
Missing requirement: JDT Core patch for Groovy-Eclipse plugin 2.9.1.xx-201411061336-e42-RELEASE (org.codehaus.groovy.jdt.patch.feature.group 2.9.1.xx-201411061336-e42-RELEASE) requires ‘org.eclipse.jdt.feature.group 0.0.0’ but it could not be found
说明你还没有安装 org.codehaus.groovy.jdt.patch.feature.group 这个插件
点击这个链接下载需要的依赖插件
https://dist.springsource.org/release/GRECLIPSE/2.9.1/e4.4/org.codehaus.groovy-2.9.1.xx-201411061335-e44-RELEASE-updatesite.zip 然后,按照安装springboot插件的流程,先安装这个依赖插件
依赖插件安装成功后,再重复上述安装springboot插件。

打开Window->Preferences->Install/Update->Available software Sites,将Oracle Enterprise Pack For Eclipse改为disable

目前spring官网(http://spring.io/tools/sts/all)上可下载的spring插件只有:springsource-tool-suite-3.8.4(sts-3.8.4)。但这只针对指定的eclipse版本适用。
如何为自己的eclipse下载历史版本的sts呢?拼下载的url。
首先,鼠标右键可下载的sts链接,然后“复制链接地址”,把地址拷贝出来。

地址如下:http://download.springsource.com/release/TOOLS/update/3.8.4.RELEASE/e4.7/springsource-tool-suite-3.8.4.RELEASE-e4.7.0-updatesite.zip。
然后点击历史版本链接,查看历史版本信息。(注意这里历史版本列表中提供的下载文件,并不能直接作为sts插件使用)
以历史版本列表中sts-3.7.2版为例。

拷贝出来的地址如下:
http://download.springsource.com/release/STS/3.7.2.RELEASE/dist/e4.5/spring-tool-suite-3.7.2.RELEASE-e4.5.1-win32-x86_64.zip。 现在将两个地址进行比较和拼接:
sts-3.8.4插件下载地址:http://download.springsource.com/release/TOOLS/update/3.8.4.RELEASE/e4.7/springsource-tool-suite-3.8.4.RELEASE-e4.7.0-updatesite.zip,
sts-3.7.2历史版本信息下载地址:http://download.springsource.com/release/STS/3.7.2.RELEASE/dist/e4.5/spring-tool-suite-3.7.2.RELEASE-e4.5.1-win32-x86_64.zip,
拼出sts-3.7.2的插件下载地址是:http://download.springsource.com/release/TOOLS/update/3.7.2.RELEASE/e4.5/springsource-tool-suite-3.7.2.RELEASE-e4.5.1-updatesite.zip
同样方法可以得到
http://download.springsource.com/release/TOOLS/update/3.8.4.RELEASE/e4.6/springsource-tool-suite-3.8.4.RELEASE-e4.6.3-updatesite.zip sts-3.8.3的下载地址:http://download.springsource.com/release/TOOLS/update/3.8.3.RELEASE/e4.6/springsource-tool-suite-3.8.3.RELEASE-e4.6.2-updatesite.zip
sts-3.8.2的下载地址:http://download.springsource.com/release/TOOLS/update/3.8.2.RELEASE/e4.6/springsource-tool-suite-3.8.2.RELEASE-e4.6.1-updatesite.zip
sts-3.8.1的下载地址:http://download.springsource.com/release/TOOLS/update/3.8.1.RELEASE/e4.6/springsource-tool-suite-3.8.1.RELEASE-e4.6-updatesite.zip
sts-3.8.0的下载地址:http://download.springsource.com/release/TOOLS/update/3.8.0.RELEASE/e4.6/springsource-tool-suite-3.8.0.RELEASE-e4.6-updatesite.zip
http://download.springsource.com/release/TOOLS/update/3.8.2.RELEASE/e4.3.2/springsource-tool-suite-3.8.2.RELEASE-e4.3.2-updatesite.zip

从新更新maven工程,就行了。

后来,问题解决了。

pom报错一般性问题
2。一般情况下,maven出错的问题,都是由于网络原因,导致maven包没有下载下来。
常见的解决方案是:
注意要把标红的项,勾上。

如果,这个解决不了,根据第一个的思路,找到本地报错的文件夹,将该文件夹删除。重新更新maven工程一般就行了