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

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
    已采纳

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

    点赞 评论
  • compass_pingtou 2020-11-09 17:45

    1. <id>nexus</id> 这个貌似得激活

    2. 你的本地仓库  localRepository 不用盘符用的啥系统?

    点赞 评论

相关推荐 更多相似问题