Java Spring Tool Suite 3.6.1 不会更新

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25824902/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 01:14:59  来源:igfitidea点击:

Spring Tool Suite 3.6.1 won't update

javaspring-roospring-tool-suiteeclipse-luna

提问by gechenique

Updating the Spring Tool Suitein Eclipse Luna, I get the following error since I turned off the option to download updates for Eclipse 3.7:

在 Eclipse Luna 中更新Spring Tool Suite时,由于我关闭了下载 Eclipse 3.7 更新的选项,因此出现以下错误:

**An error occurred while collecting items to be installed session context was:(profile=DefaultProfile, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
No repository found containing: osgi.bundle,org.springsource.ide.eclipse.commons.quicksearch,3.6.1.201408250654-RELEASE
No repository found containing: osgi.bundle,org.springsource.sts,3.6.1.201408250824-RELEASE
No repository found containing: org.eclipse.update.feature,org.springsource.ide.eclipse.commons.quicksearch.feature,3.6.1.201408250654-RELEASE
No repository found containing: org.eclipse.update.feature,org.springsource.sts,3.6.1.201408250824-RELEASE
No repository found containing: binary,org.springsource.sts.ide.executable.win32.win32.x86_64,3.6.1.201408250824-RELEASE-e43
No repository found containing: org.eclipse.update.feature,org.springsource.sts.package,3.6.1.201408250824-RELEASE-e43
No repository found containing: binary,org.springsource.sts.package_root,3.6.1.201408250824-RELEASE-e43**

The version I have installed is:

我安装的版本是:

Spring Tool Suite 
Version: 3.6.0.RELEASE
Build Id: 201407101106
Platform: Eclipse Luna (4.4)**

Does anyone know how to fix this?

有谁知道如何解决这一问题?

回答by Martin Lippert

It looks like there is some stale data in the p2 repository cache of Eclipse/STS. I would recommend to do the following:

Eclipse/STS 的 p2 存储库缓存中似乎有一些陈旧数据。我建议执行以下操作:

  • make sure that you have the 4.4-based update site of STS only (among the Eclipse Luna one), but not another STS update site for a different Eclipse version.
  • go to the main STS directory and delete the content of "p2/org.eclipse.equinox.p2.repository/cache" while STS is NOT running.
  • restart
  • 确保您只有基于 4.4 的 STS 更新站点(在 Eclipse Luna 中),而不是其他 Eclipse 版本的另一个 STS 更新站点。
  • 转到主 STS 目录并在 STS 未运行时删除“p2/org.eclipse.equinox.p2.repository/cache”的内容。
  • 重新开始

This should remove the stale data and you should be able to continue with STS updates (to 3.6.1, for example).

这应该会删除陈旧的数据,您应该能够继续进行 STS 更新(例如到 3.6.1)。

回答by Khai Dinh

The first bullet point from Martin's answer fixed my issue. I had multiple update sites for SpringSource, including e3.7, e4.3, and e4.4. Steps I took to fix this:

马丁回答中的第一个要点解决了我的问题。我有多个 SpringSource 更新站点,包括 e3.7、e4.3 和 e4.4。我采取的步骤来解决这个问题:

  1. Select Window -> Preferences from menu
  2. Expand Install/Update and select Available Software Sites
  3. Uncheck update sites for SpringSource, except e4.4, and save
  1. 从菜单中选择窗口 -> 首选项
  2. 展开安装/更新并选择可用软件站点
  3. 取消选中 SpringSource 的更新站点,e4.4 除外,然后保存

To test the fix:

要测试修复:

  1. Select Help -> Check for Updates
  1. 选择帮助 -> 检查更新

Hope this helps. Thanks Martin for pointing this situation out.

希望这可以帮助。感谢 Martin 指出这种情况。

回答by Chaerun

Steps I took to fix this :

我采取的步骤来解决这个问题:

  1. Close STS
  2. Delete folder cache on sts-3.6.0.RELEASE\p2\org.eclipse.equinox.p2.repository
  3. Run STS
  4. Select Window -> Preferences
  5. Expand Install/Update and select Available Software Sites
  6. Uncheck all update site, Except http://download.eclipse.org/releases/lunaand save
  7. Select Help -> Check for updates
  8. Select Window -> Preferences
  9. Expand Install/Update and select Available Software Sites
  10. Check http://dist.springsource.com/release/TOOLS/update/e4.4/and save
  11. Select Help -> Check for updates
  1. 关闭 STS
  2. 删除 sts-3.6.0.RELEASE\p2\org.eclipse.equinox.p2.repository 上的文件夹缓存
  3. 运行 STS
  4. 选择窗口 -> 首选项
  5. 展开安装/更新并选择可用软件站点
  6. 取消选中所有更新站点,除了http://download.eclipse.org/releases/luna并保存
  7. 选择帮助 -> 检查更新
  8. 选择窗口 -> 首选项
  9. 展开安装/更新并选择可用软件站点
  10. 检查http://dist.springsource.com/release/TOOLS/update/e4.4/并保存
  11. 选择帮助 -> 检查更新

If u got error "STS.exe", just remove (backup first) STS.exe, and check for updates again.

如果您收到错误“STS.exe”,只需删除(先备份)STS.exe,然后再次检查更新。

回答by Arun

Below is what worked for me, I'm using STS 3.7.3 Release:

以下是对我有用的内容,我使用的是 STS 3.7.3 版本:

First go to Window -> Preferences -> Install/Update -> Available Software sites -> Uncheck all the SpringSource Update Site for Eclipse boxes.

首先转到 Window -> Preferences -> Install/Update -> Available Software sites -> 取消选中所有 SpringSource Update Site for Eclipse 框。

Then go to Help -> Check for Updates and you should now see all the updates except the one that says Spring Tool Suite. Install them if you need or ignore. Then you can follow the next steps.

然后转到 Help -> Check for Updates,您现在应该可以看到除 Spring Tool Suite 之外的所有更新。如果您需要或忽略它们,请安装它们。然后您可以按照以下步骤操作。

From the STS download site (https://spring.io/tools/sts/all), I got the current update site link which under Update Sites: http://dist.springsource.com/release/TOOLS/update/e4.6/

从 STS 下载站点(https://spring.io/tools/sts/all),我得到了当前更新站点链接,在更新站点下:http://dist.springsource.com/release/TOOLS/update/e4 .6/

Go to -> Help -> Install New Software -> Add this link in the Work with field and enter. Then Select All or whatever you need and Finish. It will ask to restart STS and you are done.

转到 -> 帮助 -> 安装新软件 -> 在 Work with 字段中添加此链接并输入。然后全选或您需要的任何内容并完成。它将要求重新启动 STS,您就完成了。

Update:This is for version 3.8.1 in C:\Users\\Documents\New\STS at this location and when I update I didn't have any issues. If you install (unzip) STS in C directly may be then you might have this issue.

更新:这适用于 C:\Users\\Documents\New\STS 中的 3.8.1 版本,当我更新时没有任何问题。如果您直接在 C 中安装(解压缩)STS,那么您可能会遇到此问题。

If you choose to re-install, it's better to install in Documents or if you have any other drive than C:\ to avoid such issues and spending time resolving it.

如果您选择重新安装,最好安装在 Documents 中,或者如果您有除 C:\ 之外的任何其他驱动器,以避免此类问题并花时间解决它。

Although the question asked is for 3.6.1 I think it's for all versions.

虽然所问的问题是针对 3.6.1 的,但我认为它适用于所有版本。

回答by Chad_G

I had the same problem and all the suggestions above didn't work for me. I stumbled on the solution by

我遇到了同样的问题,上面的所有建议对我都不起作用。我偶然发现了解决方案

Windows/Available Software in STS.

STS 中的 Windows/可用软件。

I noticed that the drop down on Available Software was empty and expanded the drop down to select "SpringSource Update Site for Eclipse 4.5 - http://dist.springsource.com/release/TOOLS/update/e4.5"

我注意到可用软件上的下拉列表是空的,并展​​开下拉列表以选择“Eclipse 4.5 的 SpringSource 更新站点 - http://dist.springsource.com/release/TOOLS/update/e4.5

I selected all and completed the update and everything was fine after restart.

我全选并完成更新,重启后一切正常。