You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

求助:无法在Eclipse中安装Spring STS组件

Eclipse安装Spring STS组件失败问题

错误现象

安装时弹出错误窗口:
错误弹窗

详细错误信息:

收集待安装项目时发生错误
会话上下文为:(profile=C__Users_asusm_eclipse_java-2022-09_eclipse, phase=org.eclipse.equinox.internal.p2.engine.phases.Collect, operand=, action=).
未找到包含以下内容的仓库:

osgi.bundle,com.hierynomus.sshj,0.24.0
osgi.bundle,com.jcraft.jzlib,1.1.3.v20220502-1820
osgi.bundle,io.projectreactor.reactor-core,3.3.1.202003091750-RELEASE
osgi.bundle,org.apache.commons.lang3,3.4.0
osgi.bundle,org.dadacoalition.yedit,1.0.18.201602092025-RELEASE-SIGNED
osgi.bundle,org.reactivestreams.reactive-streams,1.0.3
org.eclipse.update.feature,org.springframework.boot.ide.main.feature,4.16.0.202209151144
binary,org.springframework.boot.ide.main.feature_root,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.beans.ui.live,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot.dash,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot.dash.cf,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot.dash.docker,4.16.0.202209151144
org.eclipse.update.feature,org.springframework.ide.eclipse.boot.dash.feature,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot.launch,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot.refactoring,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot.restart,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot.templates,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot.validation,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.boot.wizard,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.buildship30,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.docker.client,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.editor.support,4.16.0.202209151102
osgi.bundle,org.springframework.ide.eclipse.imports,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.maven.pom,4.16.0.202209151144
osgi.bundle,org.springframework.ide.eclipse.xml.namespaces,4.16.0.202209151144
org.eclipse.update.feature,org.springframework.ide.eclipse.xml.namespaces.feature,4.16.0.202209151144
osgi.bundle,org.springframework.tooling.boot.ls,1.39.0.202209151102
org.eclipse.update.feature,org.springframework.tooling.boot.ls.feature,4.16.0.202209151102
osgi.bundle,org.springframework.tooling.cloudfoundry.manifest.ls,1.39.0.202209151102
osgi.bundle,org.springframework.tooling.jdt.ls.commons,4.16.0.202209151102
osgi.bundle,org.springframework.tooling.ls.eclipse.commons,4.16.0.202209151102
osgi.bundle,org.springframework.tooling.ls.eclipse.gotosymbol,4.16.0.202209151102
osgi.bundle,org.springsource.ide.eclipse.commons.boot.ls,4.16.0.202209151102
osgi.bundle,org.springsource.ide.eclipse.commons.cloudfoundry.client.v2,4.16.0.202209151144
osgi.bundle,org.springsource.ide.eclipse.commons.core,4.16.0.202209151102
osgi.bundle,org.springsource.ide.eclipse.commons.frameworks.core,4.16.0.202209151102
osgi.bundle,org.springsource.ide.eclipse.commons.frameworks.ui,4.16.0.202209151102
osgi.bundle,org.springsource.ide.eclipse.commons.jdk_tools,4.16.0.202209151102
osgi.bundle,org.springsource.ide.eclipse.commons.livexp,4.16.0.202209151102
osgi.bundle,org.springsource.ide.eclipse.commons.ui,4.16.0.202209151102

解决步骤

1. 确认并添加匹配的STS更新源

打开Eclipse,依次进入帮助->安装新软件,点击添加,输入对应版本的STS官方更新源:

  • 针对Eclipse 2022-09,使用STS 4.16的更新源:https://download.springsource.com/release/TOOLS/sts4/update/4.16.0.RELEASE/

注意:STS版本必须与Eclipse版本匹配,版本不兼容会直接导致依赖缺失

2. 启用Eclipse默认核心仓库

在可用软件站点中,确保勾选以下默认仓库:

  • Eclipse Platform
  • Eclipse IDE for Java Developers
  • Eclipse Marketplace Client
    这些仓库包含STS依赖的基础组件,比如org.apache.commons.lang3等。

3. 清理p2缓存后重试安装

  • 关闭Eclipse,找到安装目录下的p2文件夹,删除其中的cache子文件夹
  • 重启Eclipse,重新执行STS组件安装流程

4. 手动补充缺失依赖(可选)

如果上述方法无效,可针对错误信息中列出的缺失bundle,搜索对应的jar包或专属更新源,添加到Eclipse后再尝试安装。

5. 直接下载集成STS的Eclipse包(最简方案)

若手动安装始终失败,直接从Spring官网下载预集成STS的Eclipse安装包,跳过手动安装的依赖问题。


内容的提问来源于stack exchange,提问作者Nauval Laudza Munadjat P

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.15 08:05:27