免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2509 | 回复: 0
打印 上一主题 下一主题

Eclipse for JEE版(版本Hellios) 配置 spring 开发工具(SpringSource Tool Suite 2.5.2.SR1,简称S [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-12-20 09:48 |只看该作者 |倒序浏览

方案一 :也是最省事的方案,可以到spring官方下载已经和Eclipse版本集成好了的对应版本,可以下安装版,也可以下载压缩包直接解压可得。

 

windows系统可选的版本(Mac OS X和Linux版本与此类似)

springsource-tool-suite-2.5.2.SR1-e3.6.2-win32-installer.exe or
springsource-tool-suite-2.5.2.SR1-e3.6.2-win32.zip

springsource-tool-suite-2.5.2.SR1-e3.6.2-win32-x86_64-installer.exe or
springsource-tool-suite-2.5.2.SR1-e3.6.2-win32-x86_64.zip(只对JDK64位版)

方案二:在原有Eclipse for JEE中集成安装

虽然在方案一中可以直接下载集成版,不过对于已经再使用eclipse的用户有些不方便,所以可以考虑在原来使用的Eclipse环境中直接安装新软件包,具体如下:

1. 安装预备环境,只有在下面的环境下才能安装成功:

a. Eclipse 3.5 or Eclipse 3.6
b. Eclipse WTP 3.1 or greater

可以去 http://www.eclipse.org/downloads/ 下载“Eclipse IDE for JEE Developers”版

2.在Eclipse更新管理中,屏蔽所有更新站点,操作如下:

a. 在Eclipse中打开 Preferences -> Install/Update -> Available Update Sites

b. 选择全部,通过点击“Disable”的右侧按钮,使所有更新站点失效。
c. 点击 “OK” 按钮关闭preferences 并保存当前改变。

3. 配置 springsource-tool-suite 相关更新站点。

a. 根据自己使用的Eclipse版本下载下面中对应的 bookmarks 文件:

Eclipse 3.5: http://dist.springsource.com/release/TOOLS/composite/e3.5/bookmarks.xml
Eclipse 3.6: http://dist.springsource.com/release/TOOLS/composite/e3.6/bookmarks.xml
b. 在Eclipse中打开 Preferences -> Install/Update -> Available Update Sites
a. 点击“Import…” 按钮,选择下载后的bookmarks.xml,点击打开按钮,完成导入


b. 核实站点更新列表中下面的站点是否为enabled状态,即勾选状态
Eclipse 3.5:
Galileo
(http://download.eclipse.org/releases/galileo)
SpringSource Update Site for Eclipse 3.5 (http://dist.springsource.com/release/TOOLS/update/e3.5)
SpringSource Update Site for Eclipse 3.5 ( Dependencies)
(http://dist.springsource.com/release/TOOLS/composite/e3.5)
Eclipse 3.6:
Helios
(http://download.eclipse.org/releases/helios)
SpringSource Update Site for Eclipse 3.6 (http://dist.springsource.com/release/TOOLS/update/e3.6)
SpringSource Update Site for Eclipse 3.6 (Dependencies)
(http://dist.springsource.com/release/TOOLS/composite/e3.6)

我使用的是Helios版本,经过根据多次测试,发现

Helios (http://download.eclipse.org/releases/helios)

一项有可能因为种种原因导致更新不成功。于是也需要将此项更新屏蔽,需要Disable掉,取消其前面复选款勾选,只保留和SpringSource 相关的两项,即

SpringSource Update Site for Eclipse 3.6 (Release)
(http://dist.springsource.com/release/TOOLS/update/e3.6)
SpringSource Update Site for Eclipse 3.6 (Release + Dependencies)
(http://dist.springsource.com/release/TOOLS/composite/e3.6)

此时点击“OK”按钮保存。

4. 从update manager中安装 STS 组件 :

a. 打开更新管理器: Help -> Install New Software …

b. 从“Work with”下拉列表中选择“SpringSource Update Site for Eclipse 3.6”(或者SpringSource Update Site for Eclipse 3.5)一项。

c. 从下面列表中选择安装的组件(我选的全部组件):

image

d. 点击下一步开始安装

e. 在Install Details wizard page中点击下一步

f. 在Review License wizard page中选择“I accept the terms of the license agreement”一项。并点击“finished”按钮

g.系统将开始下载所有需要的组件包。

h.所有组件包下载完成后,将弹出一个“Security Warning dialog”提示框,点击“OK”按钮,完成安装

i.当软件更新对话框完成安装后重启Eclipse

5.核实安装结果:

打开“about”对话框:“Help -> About Eclipse”,将看到“Spring IDE”以及“SpringSource”等logo图标,如下图:

image

 

b. 打开 “Spring” 视图:Window -> Open Perspective -> Other… ->Spring

 

6. 通过STS Dashboard安装spring扩展组件:

STS 提供大量的SpringSource以及第三方插件,打开STS Dashboard:

Help –> Dashboard,打开Dashboard后,点击 “Extension” 页卡,选择所需组件安装即可

image

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP