无法解析 org.springframework.boot:spring-boot-autoconfigure:2.6.1 springboot |多宝

Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.1 springboot | dubbo

我在使用maven导入dubbo-spring-boot-start的jar包时出现如下错误:

[INFO] Validation error:

[ERROR] org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.dubbo:dubbo-spring-boot-starter:jar:2.7.3
[ERROR] Maven server structure problem

[ERROR] org.eclipse.aether.resolution.ArtifactDescriptorException: Failed to read artifact descriptor for org.apache.dubbo:dubbo-spring-boot-starter:jar:2.7.3
Cannot resolve org.springframework.boot:spring-boot-autoconfigure:2.6.1
Cannot resolve jakarta.annotation:jakarta.annotation-api:1.3.5
Cannot resolve jline:jline:0.9.94
Cannot resolve org.springframework:spring-core:5.3.13
Cannot resolve org.ow2.asm:asm:9.1
Cannot resolve org.apache.curator:curator-client:2.12.0
Cannot resolve jakarta.xml.bind:jakarta.xml.bind-api:2.3.3
Cannot resolve org.apache.logging.log4j:log4j-to-slf4j:2.14.1
Cannot resolve org.springframework:spring-test:5.3.13
Cannot resolve org.junit.jupiter:junit-jupiter-api:5.8.1
Cannot resolve org.slf4j:slf4j-api:1.7.32
Cannot resolve org.opentest4j:opentest4j:1.2.0
Cannot resolve org.springframework.boot:spring-boot-test:2.6.1
Cannot resolve net.minidev:accessors-smart:2.4.7



Springboot 2.6.1和dubbo-spring-boot-starter版本为2.7.3

这是我的 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.1</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>com.kuang</groupId>
    <artifactId>springboot-11-provider-server</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>springboot-11-provider-server</name>
    <description>springboot-11-provider-server</description>
    <properties>
        <java.version>1.8</java.version>
    </properties>
    <dependencies>

        <dependency>
            <groupId>org.apache.dubbo</groupId>
            <artifactId>dubbo-spring-boot-starter</artifactId>
            <version>2.7.3</version>
        </dependency>

        <dependency>
            <groupId>com.github.sgroschupf</groupId>
            <artifactId>zkclient</artifactId>
            <version>0.1</version>
        </dependency>
        <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>

</project>


这是什么原因? 添加dubbo-spring-boot-starter jar包报错,降级到2.7.0

后可以运行

删除 .m2 文件夹然后重试,我刚遇到这个。