榊覔奚奚 2020-11-09 13:02 采纳率: 100%
浏览 69
已采纳

Maven项目install时报错

提示`Failure to find org.springframework.boot:spring-boot-starter-parent:pom:2.3.3.RELEASE in http://private-domain.com/repository/bpsoft-release/ was cached in the local repository, resolution will not be reattempted until the update interval of bpsoft-release has elapsed or updates are forced`

Maven的settings.xml如下:

```

<?xml version="1.0" encoding="UTF-8"?>

<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"

          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">

  <localRepository>/Users/myUserName/.m2/repository</localRepository>

  <pluginGroups>

  </pluginGroups>

  

  <proxies>

  </proxies>

 

  <servers>

  </servers>

 

  <mirrors>

    <mirror>

      <id>nexus-aliyun</id>

      <mirrorOf>central</mirrorOf>

      <name>Nexus Aliyun</name>

      <url>http://maven.aliyun.com/nexus/content/groups/public</url>

    </mirror>

  </mirrors>

 

  <profiles>

    <profile>

      <id>nexus</id>

      <activation>

        <activeByDefault>true</activeByDefault>

        <jdk>1.8</jdk>

      </activation>

      <properties>

        <maven.compile.source>1.8</maven.compile.source>

        <maven.compile.target>1.8</maven.compile.target>

        <maven.compile.compilerVersion>1.8</maven.compile.compilerVersion>

      </properties>

      <repositories>

        <repository>

          <id>bpsoft-release</id>

          <name>bpsoft release</name>

          <url>http://private-domain.com/repository/bpsoft-release/</url>

        </repository>

        <repository>

          <id>nexus-aliyun</id>

          <url>http://maven.aliyun.com.nexus/content/groups/public</url>

          <release>

            <enable>true</enable>

          </release>

        </repository>

      </repositories>

    </profile>

  </profiles>

</settings>

```

  • 写回答

2条回答 默认 最新

  • 两个娃他爹 2020-11-09 16:08
    关注

    把配置文件里面两个仓库的地址替换一下,让阿里的地址放在上面试试

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 PADS Logic 原理图
  • ¥15 PADS Logic 图标
  • ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
  • ¥20 气象站点数据求取中~
  • ¥15 如何获取APP内弹出的网址链接
  • ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
  • ¥50 STM32单片机传感器读取错误
  • ¥15 (关键词-阻抗匹配,HFSS,RFID标签天线)
  • ¥15 机器人轨迹规划相关问题
  • ¥15 word样式右侧翻页键消失