无法传输 artifact org.springframework.boot,传输失败。

huangapple 未分类评论45阅读模式
英文:

Could not transfer artifact org.springframework.boot and transfer failed

问题

我是新手使用Maven,当我开始一个Spring Boot项目时,我遇到了很多问题,如下所示:

无法从alimaven(https://maven.aliyun.com/repository/public)传输依赖项org.springframework.boot:spring-boot-starter-data-jpa:pom:2.2.3.RELEASE: 无法传输 https://maven.aliyun.com/repository/public/org/springframework/boot/spring-boot-starter-data-jpa/2.2.3.RELEASE/spring-boot-starter-data-jpa-2.2.3.RELEASE.pom

此外,当我使用其他依赖项时,Maven 无法从我的镜像下载它,我的设置如下:

<mirrors>
    <mirror>
        <id>alimaven</id>
        <name>aliyun maven</name>
        <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
        <!-- <mirrorOf>central</mirrorOf> -->
        <mirrorOf>*</mirrorOf>
    </mirror>
</mirrors>

为什么我的Maven不能从仓库下载任何JAR文件?

英文:

I'm new to maven and when I begin a spring-boot project, i face a lot of problems as below:

Could not transfer artifact org.springframework.boot:spring-boot-starter-data-jpa:pom:2.2.3.RELEASE from/to alimaven (https://maven.aliyun.com/repository/public): Transfer failed for https://maven.aliyun.com/repository/public/org/springframework/boot/spring-boot-starter-data-jpa/2.2.3.RELEASE/spring-boot-starter-data-jpa-2.2.3.RELEASE.pom

also, when i use other depedency, the maven cannot download it from my mirror, and my settings is as below

&lt;mirrors&gt;
    &lt;mirror&gt;
        &lt;id&gt;alimaven&lt;/id&gt;
        &lt;name&gt;aliyun maven&lt;/name&gt;
        &lt;url&gt;http://maven.aliyun.com/nexus/content/groups/public/&lt;/url&gt;
        &lt;!--&lt;mirrorOf&gt;central&lt;/mirrorOf&gt; --&gt;
        &lt;mirrorOf&gt;*&lt;/mirrorOf&gt;
    &lt;/mirror&gt;
  &lt;/mirrors&gt;

why cant my maven download any jar from the repo?

huangapple
  • 本文由 发表于 2020年4月7日 18:44:40
  • 转载请务必保留本文链接:https://java.coder-hub.com/61078218.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定