【解决】Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom

  • Post author:
  • Post category:其他




问题截图(Idea中的问题)

在这里插入图片描述



出现问题原因

该问题主要是与Maven相关的,可以考虑以下的几个问题

1 Idea中是否配置了本地的Maven,如果没有配置,最好使用本地的Maven,会更稳定些,可以自行搜索相应的配置选项。主要是注意Maven中的setting.xml(在Maven文件夹下的conf文件夹)中的 mirror 的配置,这里可以给大家一种经过测试的镜像资源

在这里插入图片描述

<mirrors>
        <mirror>
            <id>alimaven</id>
            <name>aliyun maven</name>
            <url>http://maven.aliyun.com/nexus/content/groups/public/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
        <mirror>
            <id>ui</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://uk.maven.org/maven2/</url>
        </mirror>
        <mirror>
            <id>jboss-public-repository-group</id>
            <mirrorOf>central</mirrorOf>
            <name>JBoss Public Repository Group</name>
            <url>http://repository.jboss.org/nexus/content/groups/public</url>
        </mirror>
        <mirror>
            <id>repo2</id>
            <mirrorOf>central</mirrorOf>
            <name>Human Readable Name for this Mirror.</name>
            <url>http://repo2.maven.org/maven2/</url>
        </mirror>
        <mirror>
            <id>OSChina</id>
            <name>OSChina Central</name>
            <url>http://maven.oschina.net/content/groups/public/</url>
            <mirrorOf>central</mirrorOf>
        </mirror>
        <mirror>
            <id>nexus-osc-thirdparty</id>
            <mirrorOf>thirdparty</mirrorOf>
            <name>Nexus osc thirdparty</name>
            <url>http://maven.oschina.net/content/repositories/thirdparty/</url>
        </mirror>
    </mirrors>

然后将Maven配置到您的IDE中即可

2 在配置后,如果还是出现了以上的问题,可以尝试下面的步骤,网上主要有两种方式,一种复杂,一种简单,我推荐简单的,因为简单可以解决的问题,就不要复杂。

添加的语句如下:

-Dmaven.wagon.http.ssl.insecure=true -Dmaven.wagon.http.ssl.allowall=true

在这里插入图片描述

【貌似另外一种方法是基于安全证书的,可以自行搜索查看】

OSZAR »


版权声明:本文为qq_29750461原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。