在Java开发人员的Eclipse IDE中安装STS时显示错误

时间:2019-07-17 11:54:11

标签: java spring eclipse spring-boot spring-tool-suite

我在eclipse中设置了一个STS以创建spring boot项目。但是,从市场上安装sts时显示错误。

Cannot complete the install because one or more required items could not be found.
  Software being installed: Spring IDE AJDT Integration (optional) 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.ajdt.feature.feature.group 3.9.9.201906180643-RELEASE)
  Missing requirement: Spring IDE Live Beans Graph 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.beans.ui.livegraph 3.9.9.201906180643-RELEASE) requires 'osgi.bundle; org.eclipse.zest.core [1.0.0,2.0.0)' but it could not be found
  Cannot satisfy dependency:
    From: Spring IDE AJDT Integration (optional) 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.ajdt.feature.feature.group 3.9.9.201906180643-RELEASE)
    To: org.eclipse.equinox.p2.iu; org.springframework.ide.eclipse.feature.feature.group 0.0.0
  Cannot satisfy dependency:
    From: Spring IDE Core (required) 3.9.9.201906180643-RELEASE (org.springframework.ide.eclipse.feature.feature.group 3.9.9.201906180643-RELEASE)
    To: org.eclipse.equinox.p2.iu; org.springframework.ide.eclipse.beans.ui.livegraph [3.9.9.201906180643-RELEASE,3.9.9.201906180643-RELEASE]

Spring Tools 3 (Standalone Edition) 3.9.9 Release

1 个答案:

答案 0 :(得分:0)

安装过程似乎抱怨缺少软件包org.eclipse.zest.core。该捆绑软件来自主要的Eclipse p2存储库,不属于STS 3.9.9 p2存储库。在安装Marketplace条目的过程中,将考虑所有已配置的p2仓库,因此从市场上选择STS 3.9.9条目将导致从主要Eclipse p2仓库下载该捆绑软件。

因此,请确保已在您的首选项(Preferences -> Install/Update -> Available Update Sites)中配置并启用了主要的Eclipse p2存储库。

如果是这样的话,周围可能会有陈旧的缓存数据,这将阻止Eclipse在主要Eclipse存储库中找到该捆绑软件。在这种情况下,请从首选项中除去主要的Eclipse p2存储库,重新启动Eclipse,然后将其重新添加。然后再次尝试进入STS 3.9.9的市场。