无法下载资源

时间:2019-11-07 05:41:39

标签: spring-boot microservices netflix-eureka

  

当我尝试创建发现服务器时,出现此错误

     
    

“无法下载源代码或javadoc     无法读取Maven项目     处理POM时遇到一些问题:     [错误]无法解析的导入POM:无法将https://repo.spring.io/milestone中的org.springframework.cloud:spring-cloud-dependencies:pom:Hoxton.RC1传输到本地存储库中,直到更新后才会重新尝试解析春天里程碑的间隔已经过去或强制进行更新。原始错误:无法从/向春天里程碑(https://repo.spring.io/milestone)传输工件org.springframework.cloud:spring-cloud-dependencies:pom:Hoxton.RC1:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求的目标的有效证书路径@第47行,第16列     [错误] org.springframework.cloud:'spring-cloud-starter-netflix-eureka-server:jar缺少'dependencies.dependency.version'。 @第27行,第15列在处理POM时遇到了一些问题:     [错误]无法解析的导入POM:无法将https://repo.spring.io/milestone中的org.springframework.cloud:spring-cloud-dependencies:pom:Hoxton.RC1传输到本地存储库中,直到更新后才会重新尝试解析春天里程碑的间隔已经过去或强制进行更新。原始错误:无法从/向春天里程碑(https://repo.spring.io/milestone)传输工件org.springframework.cloud:spring-cloud-dependencies:pom:Hoxton.RC1:sun.security.validator.ValidatorException:PKIX路径构建失败:sun.security.provider.certpath.SunCertPathBuilderException:无法找到到请求的目标的有效证书路径@第47行,第16列     [错误] org.springframework.cloud:'spring-cloud-starter-netflix-eureka-server:jar缺少'dependencies.dependency.version'。 @第27行,第15列”

  

这是我的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.2.0.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>
    <groupId>io.mgk</groupId>
    <artifactId>discovery-server</artifactId>
    <version>0.0.1-SNAPSHOT</version>
    <name>discovery-server</name>
    <description>Demo project for Spring Boot</description>

    <properties>
        <java.version>1.8</java.version>
        <spring-cloud.version>Hoxton.RC1</spring-cloud.version>
    </properties>

    <dependencies>
        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-actuator</artifactId>
        </dependency>
        <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId>
        </dependency>

        <dependency>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-starter-test</artifactId>
            <scope>test</scope>
            <exclusions>
                <exclusion>
                    <groupId>org.junit.vintage</groupId>
                    <artifactId>junit-vintage-engine</artifactId>
                </exclusion>
            </exclusions>
        </dependency>
    </dependencies>

    <dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>org.springframework.cloud</groupId>
                <artifactId>spring-cloud-dependencies</artifactId>
                <version>${spring-cloud.version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>

    <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>
    </repositories>

</project>

0 个答案:

没有答案