如何在没有直接访问互联网的情况下为 Eclipse/STS 安装 Groovy 和 Grails 插件?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/9805566/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do you install Groovy and Grails plugins for Eclipse/STS without direct internet access?
提问by Chris
I'm using a Windows 7 Enterprise edition 64 bit, the firewall means certain update sites are not directly accessible and my standard user is not a local admin.
我使用的是 64 位 Windows 7 企业版,防火墙意味着无法直接访问某些更新站点,而且我的标准用户不是本地管理员。
How do you install the Groovy and Grails plugins for STS?
如何为 STS 安装 Groovy 和 Grails 插件?
回答by Chris
Update (July 2012): There is now a preconfigured version of STS availabe which comes with Groovy and Grails, simply install or unzip the package and Groovy, Grails and their plugins are pre-installed and working. This is available on the STS site here(eg Groovy/Grails Tool Suite version 3.0.0.M3 zip file is here
更新(2012 年 7 月):现在有一个预配置的 STS 版本,它随 Groovy 和 Grails 一起提供,只需安装或解压缩包,Groovy、Grails 和它们的插件就已预安装并可以工作。这可在此处的 STS 站点上获得(例如,此处为Groovy/Grails Tool Suite version 3.0.0.M3 zip 文件)
I originally had a number of problems with admin/access rights and the inline STS extensions update site getting blocked by the firewall. I thought installing STS as a local admin would help things but this actually made it worse and caused problems when running STS from a normal user account later. Here are the final steps needed…
我最初在管理/访问权限方面遇到了许多问题,并且内联 STS 扩展更新站点被防火墙阻止。我认为以本地管理员身份安装 STS 会有所帮助,但这实际上使情况变得更糟,并导致以后从普通用户帐户运行 STS 时出现问题。这是所需的最后步骤……
User Access Issues:Create a directory eg c:\devtools
用户访问问题:创建一个目录,例如 c:\devtools
- c:\devtools -> a directory where STS can be installed. (Your Windows 7 User must have full read/write access)
- Unzipping and all other actions described below should be done as your normal user(this doesn't require a local admin user) A local admin was only needed to create the devtools directory and grant full read/write access to the standard user.
- c:\devtools -> 可以安装 STS 的目录。(您的 Windows 7 用户必须具有完全读/写访问权限)
- 解压缩和下面描述的所有其他操作应该作为您的普通用户完成(这不需要本地管理员用户) 本地管理员只需要创建 devtools 目录并向标准用户授予完全读/写访问权限。
Download/Firewall Issues:The following files can be downloaded from a separate computer and moved across so the developer PC doesn't require direct internet access
下载/防火墙问题:以下文件可以从单独的计算机下载并移动,因此开发人员 PC 不需要直接访问互联网
- Download the STS Windows Zip Filehttp://www.springsource.org/downloads/sts
- Eg STS 2.9.0 / Eclipse 3.7.2, Windows 64 Bit zip file http://download.springsource.com/release/STS/2.9.0/dist/e3.7/springsource-tool-suite-2.9.0.RELEASE-e3.7.2-win32-x86_64.zip
- Unzip this to your ‘devtools' directory
- Download Groovy STS Pluginhttp://ci.repository.codehaus.org/greclipse/snapshot/e37/old/
- eg Archive v2.6.1 for STS 2.9.0 http://ci.repository.codehaus.org/greclipse/snapshot/e37/old/archive-2.6.1.xx-20120118-1100-e37-M1.zip
- Go to STS -> Help -> Install New Software -> Click ‘Add',
- enter a name, eg ‘STS Groovy Update Zip file', click ‘Archive' and select the file that you just downloaded
- Click ‘Select All' -> then ‘Next' -> then ‘Finish',
- Accept the confirmations etc then after it has been installed restart STS
- Download Eclipse Update Zip File(which includes the Grails Plugin) (The Groovy Plugin must be installed first) http://www.springsource.org/downloads/sts
- Update Site STS 2.9.0 / Eclipse 3.7.2, eg http://download.springsource.com/release/TOOLS/update/2.9.0.RELEASE/e3.7/springsource-tool-suite-2.9.0.RELEASE-e3.7.2-updatesite.zip
- Go to STS -> Help -> Install New Software -> Click ‘Add', enter a name, eg ‘STS Update Zip file', click ‘Archive' and select the file that you just downloaded
- Select ‘ Core / STS' ->
- Click ‘Extensions / STS' -> ‘SpringSource Tools Suite Grails Support' then ‘Next' -> then ‘Finish'
- Accept the confirmations etc then after it has been installed restart STS
- 下载 STS Windows Zip 文件http://www.springsource.org/downloads/sts
- 例如 STS 2.9.0 / Eclipse 3.7.2,Windows 64 位 zip 文件http://download.springsource.com/release/STS/2.9.0/dist/e3.7/springsource-tool-suite-2.9.0。 RELEASE-e3.7.2-win32-x86_64.zip
- 将其解压缩到您的“devtools”目录
- 下载 Groovy STS 插件http://ci.repository.codehaus.org/greclipse/snapshot/e37/old/
- 例如 STS 2.9.0 的存档 v2.6.1 http://ci.repository.codehaus.org/greclipse/snapshot/e37/old/archive-2.6.1.xx-20120118-1100-e37-M1.zip
- 转到 STS -> 帮助 -> 安装新软件 -> 单击“添加”,
- 输入名称,例如“STS Groovy Update Zip file”,单击“Archive”并选择您刚刚下载的文件
- 单击“全选”-> 然后“下一步”-> 然后“完成”,
- 接受确认等,然后在安装后重新启动 STS
- 下载 Eclipse 更新 Zip 文件(包括 Grails 插件)(必须先安装 Groovy 插件)http://www.springsource.org/downloads/sts
- 更新站点 STS 2.9.0 / Eclipse 3.7.2,例如http://download.springsource.com/release/TOOLS/update/2.9.0.RELEASE/e3.7/springsource-tool-suite-2.9.0.RELEASE -e3.7.2-updatesite.zip
- 转到 STS -> 帮助 -> 安装新软件 -> 单击“添加”,输入名称,例如“STS 更新 Zip 文件”,单击“存档”并选择您刚刚下载的文件
- 选择“核心/STS”->
- 单击“扩展/STS”->“SpringSource 工具套件 Grails 支持”,然后单击“下一步”-> 然后单击“完成”
- 接受确认等,然后在安装后重新启动 STS
回答by PatS
I've found using the Dashboard works for me. In STS (I'm using 2.9.1, but it worked in 2.8.1 as well and probably earlier), click Help | Dashboard. Near bottom of that Dashboard, you'll see two tabs [Dashboard] and [Extensions]. Click on Extensions and you get a list of the extensions/plugins that are available. I'm not sure if this works any differently through the firewall.
我发现使用仪表板对我有用。在 STS 中(我使用的是 2.9.1,但它也适用于 2.8.1 并且可能更早),单击帮助 | 仪表盘。在仪表板底部附近,您会看到两个选项卡 [仪表板] 和 [扩展]。单击扩展,您将获得可用扩展/插件的列表。我不确定这是否通过防火墙有任何不同。
回答by Khalid Saifullah
I have installed STS (v2.9.2) (Eclipse 3.7) from exe (downloaded from www.springsource.org/downloads/sts ) file and followed Chris's response, just changed the address/name like below -
Groovy STS Plugin:http://ci.repository.codehaus.org/greclipse/snapshot/e37/old/archive-2.7.0.xx-20120605-0900-e37-RELEASE.zip
Grails Support:http://download.springsource.com/release/TOOLS/update/2.9.2.RELEASE/e3.7/springsource-tool-suite-2.9.2.RELEASE-e3.7.2-updatesite.zip.
Though the package explorer is not the same with auto installer, yet it did miracle. Thanks Chris :-)
我已经从 exe(从 www.springsource.org/downloads/sts 下载)文件安装了 STS (v2.9.2) (Eclipse 3.7) 并按照 Chris 的回复,只是更改了地址/名称,如下所示 -
Groovy STS 插件:http:/ /ci.repository.codehaus.org/greclipse/snapshot/e37/old/archive-2.7.0.xx-20120605-0900-e37-RELEASE.zip
Grails 支持:http : //download.springsource.com/release/TOOLS /update/2.9.2.RELEASE/e3.7/springsource-tool-suite-2.9.2.RELEASE-e3.7.2-updatesite.zip。
虽然包浏览器与自动安装程序不同,但它确实创造了奇迹。谢谢克里斯:-)