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

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 C#算法问题, 不知道怎么处理这个数据的转换
  • ¥15 YoloV5 第三方库的版本对照问题
  • ¥15 请完成下列相关问题!
  • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
  • ¥15 求daily translation(DT)偏差订正方法的代码
  • ¥15 js调用html页面需要隐藏某个按钮
  • ¥15 ads仿真结果在圆图上是怎么读数的
  • ¥20 Cotex M3的调试和程序执行方式是什么样的?
  • ¥20 java项目连接sqlserver时报ssl相关错误
  • ¥15 一道python难题3