Failure to find parent:pom:2.2.6 in http://maven.aliyun was cached in the local repository...

Posted 贰零一八

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Failure to find parent:pom:2.2.6 in http://maven.aliyun was cached in the local repository...相关的知识,希望对你有一定的参考价值。

报错如下:

 原因分析:主要是阿里云的Maven仓库无法更新这个版本的pom依赖;

解决过程:于是直接在pom里面添加阿里云maven,还是报同样的错误;看到网上说删除maven仓库的对应目录或目录下的*.lastUpdated文件,然后再次运行maven命令,然后再打包设置相关的属性,但是又报无权限访问的错误;    后来就想着要不更改pom的版本,将其降低点,即改为2.2.5就好了,如下图所示:

<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter-parent</artifactId>
        <version>2.2.5.RELEASE</version>
        <relativePath/> <!-- lookup parent from repository -->
    </parent>


......

 

以上是关于Failure to find parent:pom:2.2.6 in http://maven.aliyun was cached in the local repository...的主要内容,如果未能解决你的问题,请参考以下文章

Failure to find org.glassfish:javax.el:pom:3.0.1-b06-SNAPSHOT

cas5 编译安装依赖时提示: Failure to find net.shibboleth.tool:xmlsectool:jar:2.0.0

maven build失败 (Failure to find io.renren:renren-security:pom:3.2.0 in http://maven.aliyun.com/nexus

Failure to find parent:pom:2.2.6 in http://maven.aliyun was cached in the local repository...

CAS 5.x搭建常见问题系列.Failure to find org.apereo.cas:cas-server-support-pm-jdbc:jar:5.1.9

问题解决SpringBoot工程无法找到父依赖 parent-pom Failure to find com.xxx:parent-pom:pom:1.0.0.RELEASE