简体   繁体   English

org.springframework.boot:spring-boot-starter-parent:2.4.0' 未找到

[英]org.springframework.boot:spring-boot-starter-parent:2.4.0' not found

This is my pom file.这是我的 pom 文件。 I first tried using spring boot 2.4.1 version and it worked fine.我首先尝试使用 spring 启动 2.4.1 版本,它工作正常。 Now I am not able to use 2.4.0.现在我无法使用 2.4.0。 Is it because 2.4.1 has been installed in the system and is it not allowing me to use the lower version?是不是因为系统已经安装了2.4.1,不让我使用低版本? (Because any version above 2.4.1 is not giving me any error) (因为 2.4.1 以上的任何版本都没有给我任何错误)

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.4.0</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

Clean your workspace, delete your local maven repository ( ~/.m2 ), or at least the org.springframework.boot tree, then update pom and try again.清理工作区,删除本地 maven 存储库 ( ~/.m2 ),或至少删除org.springframework.boot树,然后更新 pom 并重试。 Generally, if maven finds a higher version the dependency is satisfied.通常,如果 maven 找到更高版本,则依赖关系得到满足。

Also, 2.4.1 is the latest (highest) release as of today.此外, 2.4.1是截至今天的最新(最高)版本。

I am using IntelliJ and I tried deleting all the libraries related to spring boot 2.4.1 (File -> Project Structure -> Libraries) and then updated the version of spring boot in pom file to 2.4.0 and it worked.我正在使用 IntelliJ,我尝试删除与 spring 启动 2.4.1(文件 - > 项目结构 - > 库)相关的所有库,然后将 pom 文件中 spring 启动的版本更新为 2.4.0 并且它工作。

I am using intelliJ and editing only one line solved my problem.我正在使用 intelliJ 并且只编辑一行解决了我的问题。

previous line上一行

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.4.1</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

after updating更新后

<parent>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-parent</artifactId>
    <version>2.4.0</version>
    <relativePath/> <!-- lookup parent from repository -->
</parent>

It worked for me to update Local repository under:它对我有用,可以在以下位置更新本地存储库

IntelliJ > File > Settings > Build, Execution, Deployment > Build Tools > Maven > Repositories IntelliJ > 文件 > 设置 > 构建、执行、部署 > 构建工具 > Maven > 存储库

I wanted to updated from 2.5.0 to 2.5.3 and I got the "not found" msg.我想从 2.5.0 更新到 2.5.3,我得到了“未找到”的消息。 After the update the err msg disappeared.更新后 err msg 消失了。

暂无
暂无

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

相关问题 项目 'org.springframework.boot:spring-boot-starter-parent:2.4.0' 未找到 - Project 'org.springframework.boot:spring-boot-starter-parent:2.4.0' not found 找不到 org.springframework.boot:spring-boot-starter-parent:2.4.9.RELEASE - Could not find org.springframework.boot:spring-boot-starter-parent:2.4.9.RELEASE 无法传输工件 org.springframework.boot:spring-boot-starter-parent:pom - Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom 项目构建错误:org.springframework.boot:spring-boot-starter-parent:[unknown-version] 的不可解析父 POM:传输失败 - Project build error: Non-resolvable parent POM for org.springframework.boot:spring-boot-starter-parent:[unknown-version]: Failure to transfer “依赖&#39;org.springframework.boot:spring-boot-starter-log4j2:2.3.5.RELEASE&#39;未找到” - "Dependency 'org.springframework.boot:spring-boot-starter-log4j2:2.3.5.RELEASE' not found " 未找到依赖项 'org.springframework.boot:spring-boot-starter-security:2.2.6.RELEASE' - Dependency 'org.springframework.boot:spring-boot-starter-security:2.2.6.RELEASE' not found 未找到依赖项 &#39;org.springframework.boot:spring-boot-starter-validation:2.5.1&#39; - Dependency 'org.springframework.boot:spring-boot-starter-validation:2.5.1' not found 未找到依赖项 'org.springframework.boot:spring-boot-starter-web:2.3.0.RELEASE' - Dependency 'org.springframework.boot:spring-boot-starter-web:2.3.0.RELEASE' not found 未找到依赖项 &#39;org.springframework.boot:spring-boot-starter-data-jpa:2.5.3&#39; - Dependency 'org.springframework.boot:spring-boot-starter-data-jpa:2.5.3' not found 项目构建错误:Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter-parent: - Project build error: Non-resolvable parent POM: Failure to transfer org.springframework.boot:spring-boot-starter- parent:
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM