简体   繁体   English

未找到项目“org.springframework.boot:spring-boot-starter-parent:2.6.0-SNAPSHOT”

[英]Getting Project 'org.springframework.boot:spring-boot-starter-parent:2.6.0-SNAPSHOT' not found

I am trying to create a spring boot project in IntelliJ Idea.我正在尝试在 IntelliJ Idea 中创建一个 Spring Boot 项目。 I tried creating a project from Spring initializr.我尝试从 Spring initializr 创建一个项目。 But when I unzip it and run it on my IDE, it keeps repeating the same error:但是当我解压缩它并在我的 IDE 上运行它时,它不断重复相同的错误:

Project 'org.springframework.boot:spring-boot-starter-parent:2.6.0-SNAPSHOT' not found未找到项目“org.springframework.boot:spring-boot-starter-parent:2.6.0-SNAPSHOT”

Tried using other versions of Spring Boot, but still the same error.尝试使用其他版本的Spring Boot,但还是同样的错误。 I have also tried solutions provided on other posts earlier, but none of them work for me.我也尝试过之前在其他帖子中提供的解决方案,但没有一个对我有用。

my pom.xml file我的 pom.xml 文件

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.6.0-SNAPSHOT</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.upgrad</groupId>
    <artifactId>demoApp</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>demoApp</name>
    <description>Demo project for Spring Boot</description>
    <properties>
        <java.version>16</java.version>
    </properties>
    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-web</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
        </dependency>
    </dependencies>

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
        </plugins>
    </build>
    <repositories>
        <repository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>

        </repository>
        <repository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>

        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>spring-milestones</id>
            <name>Spring Milestones</name>
            <url>https://repo.spring.io/milestone</url>

        </pluginRepository>
        <pluginRepository>
            <id>spring-snapshots</id>
            <name>Spring Snapshots</name>
            <url>https://repo.spring.io/snapshot</url>

        </pluginRepository>
    </pluginRepositories>

</project>

Thanks!谢谢!

Spring Boot Starter Parent -> version 2.6.0-SNAPSHOT does not exist Spring Boot Starter Parent -> version 2.6.0-SNAPSHOT 不存在

在此处输入图片说明

试试 2.2.6.RELEASE 版本,对我有用。

Try to clean your local maven repository.尝试清理您的本地 Maven 存储库。 Mine was corrupted and the following lines solved the problem :我的已损坏,以下几行解决了问题:

rm -rf ~/.m2/repository
rm -rf ~/.m2/wrapper

暂无
暂无

声明:本站的技术帖子网页,遵循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.0' 未找到 - 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:[unknown-version] 的不可解析父 POM:传输失败 - Project build error: Non-resolvable parent POM for org.springframework.boot:spring-boot-starter-parent:[unknown-version]: Failure to transfer 项目构建错误: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: 未找到依赖项 &#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-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-data-jpa:2.5.3&#39; - Dependency 'org.springframework.boot:spring-boot-starter-data-jpa:2.5.3' not found 运行 spring-boot-cli 时在 local-developer-group 中找不到工件 org.springframework.boot:spring-boot-starter:jar:2.0.0.BUILD-SNAPSHOT - Could not find artifact org.springframework.boot:spring-boot-starter:jar:2.0.0.BUILD-SNAPSHOT in local-developer-group while running spring-boot-cli 无法解析 org.springframework.boot:spring-boot-starter-thymeleaf - Unable to resolve org.springframework.boot:spring-boot-starter-thymeleaf
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM