Java|–报错: Failed to create parent directories for tracking file / Non-resolvable parent POM for XXXX: Could not transfer artifact…

完整错误

mvn clean

[INFO] Scanning for projects...

Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/2.5.2/spring-boot-starter-parent-2.5.2.pom
[WARNING] Failed to create parent directories for tracking file /usr/local/apache-maven-3.8.4/ck/org/springframework/boot/spring-boot-starter-parent/2.5.2/spring-boot-starter-parent-2.5.2.pom.lastUpdated
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[FATAL] Non-resolvable parent POM for com.example:XXXX: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.5.2 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public): /usr/local/apache-maven-3.8.4/ck/org/springframework/boot/spring-boot-starter-parent/2.5.2/spring-boot-starter-parent-2.5.2.pom.part.lock (No such file or directory) and 'parent.relativePath' points at no local POM @ line 12, column 13
 @
[ERROR] The build could not read 1 project -> [Help 1]
[ERROR]
[ERROR]   The project com.example:XXXX (/home/zhangsan/tmp/test-system/pom.xml) has 1 error
[ERROR]     Non-resolvable parent POM for com.example:XXXX: Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.5.2 from/to alimaven (http://maven.aliyun.com/nexus/content/groups/public): /usr/local/apache-maven-3.8.4/ck/org/springframework/boot/spring-boot-starter-parent/2.5.2/spring-boot-starter-parent-2.5.2.pom.part.lock (No such file or directory) and 'parent.relativePath' points at no local POM @ line 12, column 13 -> [Help 2]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.

[ERROR] Re-run Maven using the -X switch to enable full debug logging.

[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR] [Help 2] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException

提取到的错误↓

Failed to create parent directories for tracking file...

Non-resolvable parent POM for XXXX: Could not transfer artifact

解决方案

#递归修改文件的权限
sudo chmod -R 777 /usr/local/apache-maven-3.8.4/
#一定要注意下面这个命令不行,必须要加参数"-R"
#sudo chmod 777 /usr/local/apache-maven-3.8.4/

成功之后的操作…

mvn clean
[INFO] Scanning for projects...

Downloading from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/2.5.2/spring-boot-starter-parent-2.5.2.pom
Downloaded from alimaven: http://maven.aliyun.com/nexus/content/groups/public/org/springframework/boot/spring-boot-starter-parent/2.5.2/spring-boot-starter-parent-2.5.2.pom (8.6 kB at 12 kB/s)
//省略N行...

[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  8.523 s
[INFO] Finished at: 2022-02-14T17:43:30+08:00
[INFO] ------------------------------------------------------------------------

Original: https://www.cnblogs.com/love-zf/p/15895020.html
Author: zh89233
Title: Java|–报错: Failed to create parent directories for tracking file / Non-resolvable parent POM for XXXX: Could not transfer artifact…

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/537747/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

  • 好玩Python——PIL项目实训(三)——gif

    1 # -*- coding: utf-8 -*- 2 """ 3 Created on Tue Apr 14 01:55:48 2020 4 5 @…

    Java 2023年6月6日
    077
  • Docker 打包部署web项目 [Dockerfile方式]

    系统环境 IDE: IDEA 2020.2 Linux: WSL2 Ubuntu 20.04 Docker: 20.10.8 参考资料 博客园: Dockerfile常用指令介绍 …

    Java 2023年6月5日
    086
  • 将Java代码打包成jar文件转换为.exe可执行程序方法

    ​ 做完学生管理系统后我想将代码打包成一个可执行程序,那样就可以直接点击在Windows下运行了,下面就跟大家分享下打包方法。 将Java的代码转换成 .exe 文件需要先把代码打…

    Java 2023年6月15日
    063
  • MVC架构-01

    MVC 本文为动力节点老杜web课程mvc部分笔记,以银行转账项目为例 不使用MVC框架(分析存在的问题 1.搞个数据库 CREATE TABLE t_act ( id bigin…

    Java 2023年6月14日
    087
  • java中static{}语句块详解

    一、在程序的一次执行过程中,static{}语句块中的内容只被执行一次,看下面的示例: 示例一 结果:你会发现虽然执行了两条Class.forName(“Test&#8…

    Java 2023年5月29日
    033
  • 超酷的元素周期表

    【原文链接】:https://blog.tecchen.tech ,博文同步发布到博客园。由于精力有限,对文章的更新可能不能及时同步,请点击上面的原文链接访问最新内容。欢迎访问我的…

    Java 2023年6月6日
    076
  • 万字+28张图带你探秘小而美的规则引擎框架LiteFlow

    大家好,今天给大家介绍一款轻量、快速、稳定可编排的组件式规则引擎框架LiteFlow。 一、LiteFlow的介绍 LiteFlow官方网站和代码仓库地址 在每个公司的系统中,总有…

    Java 2023年6月16日
    080
  • 利用redis+AOP简单处理MQ幂等问题

    思路: 1、利用redis内部的串行执行特性,使用getandset()处理分布式+并发问题; 2、注解提供入参选择,通过数据抽取后计算MD5值,实现业务性值的幂等; 代码区: 1…

    Java 2023年6月6日
    099
  • Spring Cloud Consul 入门指引

    1 概述 服务发现——自动注册和注销服务实例的网络位置 健康检查——检测服务实例何时启动并运行 分布式配置——确保所有服务实例使用相同的配置 在本文中,我们将了解如何配置 Spri…

    Java 2023年6月7日
    090
  • 58.忘与记

    dsfds posted @2022-09-28 08:33 随遇而安== 阅读(3 ) 评论() 编辑 Original: https://www.cnblogs.com/55z…

    Java 2023年6月7日
    087
  • [学习笔记] Java常用包装类

    在实际开发过程中,可能需要用到内置数据类型的对象。Java为每个内置数据类型提供对应的包装类。 Number类的子类 所有的数值类型的包装类都是抽象类Number的子类; Inte…

    Java 2023年6月5日
    073
  • 容器编排工具很多套,出身名门的Swarm上不了

    Swarm集群编排 什么是Swarm ​ Swarm是Docker公司自研发的容器集群管理系统,Swarm在早期是作为一个独立服务存在,在Docker Engine v1.12中集…

    Java 2023年6月15日
    069
  • SpringCloud微服务实战——搭建企业级开发框架(二十六):自定义扩展OAuth2实现短信验证码登录

    现在手机验证码登录似乎是每个网站必备的功能,OAuth2支持扩展自定义授权模式,前面介绍了如何在系统集成短信通知服务,这里我们进行OAuth2的授权模式自定义扩展,使系统支持短信验…

    Java 2023年6月9日
    092
  • 多线程 — H2O 生成、交替打印字符串

    现在有两种线程,氧 oxygen 和氢 hydrogen,你的目标是组织这两种线程来产生水分子。存在一个屏障(barrier)使得每个线程必须等候直到一个完整水分子能够被产生出来。…

    Java 2023年5月30日
    073
  • Spring 拦截器

    拦截器(Interceptor)是一种动态拦截方法调用的机制,在SpringMVC中动态拦截控制器方法的执行 作用: 在指定的方法调用前后执行预先设定的代码 阻止原始方法的执行 总…

    Java 2023年6月7日
    069
  • spring cloud alibaba 组件版本关系 以及 毕业版本依赖关系

    Spring Cloud Alibaba VersionSentinel VersionNacos VersionRocketMQ VersionDubbo VersionSeat…

    Java 2023年6月7日
    067
亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球