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

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 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分