【问题标题】:Why am I getting Failed to read artifact descriptor for org.springframework:spring-core:jar:5.2.0.BUILD-SNAPSHOT even though it exists?为什么我无法读取 org.springframework:spring-core:jar:5.2.0.BUILD-SNAPSHOT 的工件描述符,即使它存在?
【发布时间】:2021-03-29 16:39:35
【问题描述】:

我遇到错误

描述资源路径位置类型 无法读取 org.springframework:spring-core:jar:5.2.0.BUILD-SNAPSHOT 的工件描述符 org.eclipse.aether.resolution.ArtifactDescriptorException:无法读取工件描述符

甚至认为this https://repo.spring.io/libs-snapshot/org/springframework/spring-core/5.2.0.BUILD-SNAPSHOT/ 存在

这是我的 POM

<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">

<groupId>com.pluralsight</groupId>
<artifactId>HelloWorld</artifactId>
<version>1.0-SNAPSHOT</version>
<modelVersion>4.0.0</modelVersion>
<packaging>jar</packaging>

<build>
    <plugins>
        <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>3.8.0</version>
            <configuration>
                <release>15</release>
            </configuration>
        </plugin>
    </plugins>
</build>

<dependencies>
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-lang3</artifactId>
        <version>3.8.1</version>
    </dependency>
    
    <dependency>
        <groupId>org.junit.jupiter</groupId>
        <artifactId>junit-jupiter-engine</artifactId>
        <version>5.0.2</version>
        <scope>test</scope>
    </dependency>

    <dependency>
        <groupId>org.hibernate</groupId>
        <artifactId>hibernate-core</artifactId>
        <version>5.4.1.Final</version>
    </dependency>

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>5.2.0.BUILD-SNAPSHOT</version>
    </dependency>
            
</dependencies>

<repositories>
    <repository>
        <id>spring-snapshot</id>
        <url>http://repo.spring.io/libs-snapshot/</url>
        <snapshots><enabled>true</enabled></snapshots>
        <releases><enabled>false</enabled> </releases>
    </repository>
</repositories>

【问题讨论】:

标签: java spring maven


【解决方案1】:

您需要在存储库声明中使用 https。

【讨论】:

    猜你喜欢
    • 2018-02-02
    • 1970-01-01
    • 2016-05-08
    • 2011-10-02
    • 2017-02-12
    • 1970-01-01
    • 2011-07-03
    • 2017-08-20
    • 1970-01-01
    相关资源
    最近更新 更多