帮助在 Eclipse Indigo 上安装 Spring 插件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/7025486/
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
Help installing Spring plugin on Eclipse Indigo
提问by Theresa Forster
I have been trying for weeks to install spring plugin with Eclipse 3.7
我一直在尝试使用 Eclipse 3.7 安装 spring 插件数周
It seems very slow and it keeps timing out with certain jars it is trying to get as dependancies
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?
它看起来很慢,并且它试图获得的某些 jars 一直超时,因为依赖项
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=). 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. Read timed out Problems downloading artifact: osgi.bundle,com.springsource.sts.config.ui,2.7.1.201107091000-RELEASE. MD5 hash is not as expected. Expected: a311d3e2326d8a267f1531ff26c16e4b and found 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. 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
收集要安装的项目时发生错误会话上下文是:(profile=epp.package.jee,phase=org.eclipse.equinox.internal.p2.engine.phases.Collect,operand=,action=)。无法在http://dist.springsource.com/release/TOOLS/update/e3.6/plugins/com.springsource.org.aspectj.weaver_1.6.10.RELEASE.jar读取存储库。读取超时问题下载神器:osgi.bundle,com.springsource.sts.config.ui,2.7.1.201107091000-RELEASE。MD5 哈希不符合预期。预期:a311d3e2326d8a267f1531ff26c16e4b 并找到 7d163b4dd2819f5b24ff2272c54bbe0d。无法在http://dist.springsource.com/release/TOOLS/update/e3.6/plugins/com.springsource.sts.wizard_2.7.1.201107091000-RELEASE.jar读取存储库。读取超时无法读取存储库http://download.eclipse.org/tools/ajdt/37/update/plugins/org.aspectj.ajde_1.6.12.20110613132200.jar。读取超时无法在http://download.eclipse.org/tools/ajdt/37/update/plugins/org.eclipse.ajdt.ui_2.1.3.e37x-20110628-1900.jar读取存储库。读取超时
采纳答案by Theresa Forster
The easiest solution was to install the SpringIde from spring itself, it comes as an eclipse install with spring already installed.
最简单的解决方案是从 spring 本身安装 SpringIde,它作为已经安装了 spring 的 eclipse 安装提供。
回答by Dhruva
I was also facing the same problem when i select the all plugins but when i have selected only:
当我选择所有插件时,我也遇到了同样的问题,但当我只选择了:
Core/Spring IDE Extension(Incubation) /Spring IDE Resource /Spring IDE
核心/Spring IDE扩展(孵化)/Spring IDE资源/Spring 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 .............
希望这会帮助任何一个面临问题的人.......
回答by Naveen K
I faced the same problem installing the Spring IDE on my Indigo Eclipse. It took a long time to resolve dependencies and kept timing out.
我在 Indigo Eclipse 上安装 Spring IDE 时遇到了同样的问题。解决依赖需要很长时间,一直超时。
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). I remember I didn't have to do this for previous versions of Eclipse.
我通过修复我的代理设置来解决。我必须清除袜子连接的代理条目(刚刚定义了 http 和 https 条目)。我记得我不必为以前版本的 Eclipse 执行此操作。
But it was painless after that, I used Eclipse marketplace to search for Spring Ide and installed it from there. It took about 5 minutes for the whole installation to complete.
但在那之后就轻松了,我使用 Eclipse 市场搜索 Spring Ide 并从那里安装它。整个安装完成大约需要 5 分钟。
Hope this helps!
希望这可以帮助!
回答by Kane
There is no good way to resolve the terrible Internet connection. Because P2 considers the Socket timeout as fatal error if the repository doesn't have mirror sites. See bug 350014for detail.
没有好的方法可以解决糟糕的 Internet 连接问题。因为如果存储库没有镜像站点,P2 会将 Socket 超时视为致命错误。有关详细信息,请参阅错误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,该仓库有很多镜像,可以加快下载jar包的速度。
回答by carcaret
In my case, adding these lines to eclipse.ini solved the problem
就我而言,将这些行添加到 eclipse.ini 解决了问题
-vmargs (this one was already there)
-Djava.net.preferIPv4Stack=true