简体   繁体   English

帮助在 Eclipse Indigo 上安装 Spring 插件

[英]Help installing Spring plugin on Eclipse Indigo

I have been trying for weeks to install spring plugin with Eclipse 3.7我已经尝试安装 spring 插件与 Eclipse 3.7

It seems very slow and it keeps timing out with certain jars it is trying to get as dependancies它似乎很慢,并且它一直在尝试将某些 jars 作为依赖项而超时
tptp jars are the usual problems, Is there any way to manually install these dependancies and the plugin or do i have to keep trying over and over watching it re-download the same files over and over? tptp jars 是常见问题,有没有办法手动安装这些依赖项和插件,还是我必须一遍又一遍地尝试一遍又一遍地重新下载相同的文件?

I did leave it once all day Friday through to end of day Monday and it only got 48% through installing.我确实在周五到周一结束的时候离开了它一次,它通过安装只得到了 48%。

Repository in use is the following使用的存储库如下

http://dist.springsource.com/release/TOOLS/update/e3.7 http://dist.springsource.com/release/TOOLS/update/e3.7

and

http://dist.springsource.com/milestone/TOOLS/composite/e3.7 http://dist.springsource.com/milestone/TOOLS/composite/e3.7

I am on a fast link but just got this error我在一个快速链接上,但刚刚收到此错误

An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). An error occurred while collecting items to be installed session context was:(profile=epp.package.jee, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=). Unable to read repository at http://dist.springsource.com/release/TOOLS/update/e3.6/plugins/com.springsource.org.aspectj.weaver_1.6.10.RELEASE.jar .无法读取http://dist.springsource.com/release/TOOLS/update/e3.6/plugins/com.springsource.org.aspectj.weaver_1.6.10.RELEASE.jar的存储库。 Read timed out Problems downloading artifact: osgi.bundle,com.springsource.sts.config.ui,2.7.1.201107091000-RELEASE.读取超时问题下载工件:osgi.bundle,com.springsource.sts.config.ui,2.7.1.201107091000-RELEASE。 MD5 hash is not as expected. MD5 hash 不如预期。 Expected: a311d3e2326d8a267f1531ff26c16e4b and found 7d163b4dd2819f5b24ff2272c54bbe0d.预期:a311d3e2326d8a267f1531ff26c16e4b 并找到 7d163b4dd2819f5b24ff2272c54bbe0d。 Unable to read repository at http://dist.springsource.com/release/TOOLS/update/e3.6/plugins/com.springsource.sts.wizard_2.7.1.201107091000-RELEASE.jar .无法读取http://dist.springsource.com/release/TOOLS/update/e3.6/plugins/com.springsource.sts.wizard_2.7.1.201107091000-RELEASE.Z68995FCBF432492D15484D04A9D2AC4 . Read timed out Unable to read repository at http://download.eclipse.org/tools/ajdt/37/update/plugins/org.aspectj.ajde_1.6.12.20110613132200.jar . Read timed out Unable to read repository at http://download.eclipse.org/tools/ajdt/37/update/plugins/org.aspectj.ajde_1.6.12.20110613132200.jar . Read timed out Unable to read repository at http://download.eclipse.org/tools/ajdt/37/update/plugins/org.eclipse.ajdt.ui_2.1.3.e37x-20110628-1900.jar . Read timed out Unable to read repository at http://download.eclipse.org/tools/ajdt/37/update/plugins/org.eclipse.ajdt.ui_2.1.3.e37x-20110628-1900.jar . Read timed out读取超时

I was also facing the same problem when i select the all plugins but when i have selected only:当我 select 所有插件但我只选择时,我也面临同样的问题:

Core/Spring IDE Extension(Incubation) /Spring IDE Resource /Spring IDE核心/弹簧 IDE 扩展(孵化)/弹簧 IDE 资源/弹簧 IDE

http://www.mkyong.com/spring/how-to-install-spring-ide-in-eclipse/ http://www.mkyong.com/spring/how-to-install-spring-ide-in-eclipse/

Then it has easily installed....然后它很容易安装......

Hope this will help any one,who is facing the problem.............希望这会帮助任何面临问题的人......

There is no good way to resolve the terrible Internet connection.没有解决糟糕的 Internet 连接的好方法。 Because P2 considers the Socket timeout as fatal error if the repository doesn't have mirror sites.因为如果存储库没有镜像站点,P2 将 Socket 超时视为致命错误。 See bug 350014 for detail.有关详细信息,请参阅错误350014

But P2 already cached the successful downloaded artifacts, you can restart your Installation process to continue to download other artifacts from the repository.但是 P2 已经缓存了成功下载的工件,您可以重新启动安装过程以继续从存储库下载其他工件。

And spring depends on the AJDT from eclipse.org, you can directly install AJDT from the built-in Indigo repository that has a lot of mirrors to speed up downloading jars.而 spring 依赖于来自 eclipse.org 的 AJDT,您可以直接从具有大量镜像的内置 Indigo 存储库安装 AJDT,以加快下载 ZBE1587EA25D1C05C0801D3BDE9B4C

I faced the same problem installing the Spring IDE on my Indigo Eclipse.我在 Indigo Eclipse 上安装 Spring IDE 时遇到了同样的问题。 It took a long time to resolve dependencies and kept timing out.解决依赖关系需要很长时间,并且一直超时。

I solved by fixing my proxy settings.我通过修复代理设置来解决。 I had to clear my proxy entries for the socks connection (just had the http and https entries defined).我必须清除我的 socks 连接的代理条目(刚刚定义了 http 和 https 条目)。 I remember I didn't have to do this for previous versions of Eclipse.我记得对于以前版本的 Eclipse,我不必这样做。

But it was painless after that, I used Eclipse marketplace to search for Spring Ide and installed it from there.但之后就没有痛苦了,我使用 Eclipse 市场搜索 Spring Ide 并从那里安装它。 It took about 5 minutes for the whole installation to complete.整个安装完成大约需要 5 分钟。

Hope this helps!希望这可以帮助!

The easiest solution was to install the SpringIde from spring itself, it comes as an eclipse install with spring already installed.最简单的解决方案是从 spring 本身安装 SpringIde,它作为 eclipse 安装,spring 已经安装。

In my case, adding these lines to eclipse.ini solved the problem就我而言,将这些行添加到 eclipse.ini 解决了问题

-vmargs (this one was already there)
-Djava.net.preferIPv4Stack=true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM