当前位置: 首页 > news >正文

记录一个关于Maven配置TSF的报错问题

mvn项目暗转,在使用install、clean等命令的时候就报错了,看错误报的是关于com.tencent.tsf的错误。

我的报错信息:

was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced and 'parent.relativePath' points at no local POM @ line 5, column 13

Non-resolvable parent POM for com.yndw:yndw-aqxx-cloud:1.0: Failure to find com.tencent.tsf:spring-cloud-tsf-dependencies:pom:1.23.0-Greenwich-RELEASE in http://maven.aliyun.com/nexus/content/groups/public  was cached in the local repository, resolution will not be reattempted until the update interval of nexus-aliyun has elapsed or updates are forced and 'parent.relativePath' points at no local POM

 

下面是我POM文件正确的代码

    <parent><groupId>com.tencent.tsf</groupId><artifactId>spring-cloud-tsf-dependencies</artifactId><version>1.23.0-Greenwich-RELEASE</version><relativePath/></parent>...
...
...<repository><id>qcloud-central</id><name>qcloud mirror central</name><url>https://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url><snapshots><enabled>true</enabled></snapshots><releases><enabled>true</enabled></releases></repository><pluginRepository><id>qcloud-plugin-central</id><url>https://mirrors.cloud.tencent.com/nexus/repository/maven-public/</url><snapshots><enabled>true</enabled></snapshots><releases><enabled>true</enabled></releases></pluginRepository>

总结:网上和AI都搜了,都是一些让你配置,检查私有仓库、或者阿里云仓库换腾讯的各种,但是经过检查私有仓库已经配置,还有说把 配置文件中relativePath标签删除的,没找到有效的,后面用的idea中通义千问的插件,在报错信息那里直接用这个修复,就会把整个配置文件拿去分析,然后给出解决方案,真的很好用,好多次奇葩的问题就是这种解决的。另外解决方式就是在腾讯的私有库配置地址中把http改成https,http协议默认会被maven拦截!其他类似的问题也可以检查是否是被maven默认拦截了导致下载不了资源直接报错。

再贴一下千问的解决界面:

 

http://www.dtcms.com/a/268627.html

相关文章:

  • 基于 Three.js 开发三维引擎-02动态圆柱墙体实现
  • Python中50个常用的内置函数(2/2)
  • 剑指offer第2版:动态规划+记忆化搜索
  • 回溯题解——子集【LeetCode】输入的视角(选或不选)
  • YOLOv11模型轻量化挑战:边缘计算设备部署优化方案
  • FastAPI依赖注入:构建高可维护API的核心理念与实战
  • Modbus_TCP 客户端低版本指令(归档)
  • Hadoop 分布式存储与计算框架详解
  • Web后端开发-请求响应
  • NLP:文本特征处理和回译数据增强法
  • Mac-右键用 VS Code 打开文件夹
  • 【Echarts】“折线+柱状”实现双图表-家庭用电量可视化【文章附完整代码】
  • 泛微虚拟视图-数据虚拟化集成
  • 从库函数到API接口,深挖不同语言背后的“封装”与“调用”思想
  • pytest通过pytest_runtest_makereport添加失败截图到Allure报告中
  • 常见问题与最佳实践——AI教你学Docker
  • 1-Kafka介绍及常见应用场景
  • 学习基于springboot秒杀系统-环境配置(接口封装,mybatis,mysql,redis(Linux))
  • 2025年全国青少年信息素养大赛图形化(Scratch)编程小学低年级组初赛样题答案+解析
  • 登山第二十六梯:单目3D检测一切——一只眼看世界
  • 【C++开源库使用】使用libcurl开源库发送url请求(http请求)去下载用户头像文件(附完整源码)
  • 【R语言】 在读取 CSV 或 Excel 文件时的标准输出
  • 自定义简单线性回归模型
  • 【AI大模型】神经网络反向传播:核心原理与完整实现
  • 电脑电压过高的影响与风险分析
  • 轨迹优化 | 基于激光雷达的欧氏距离场ESDF地图构建(附ROS C++仿真)
  • 回溯题解——子集【LeetCode】二进制枚举法
  • ssh: Could not resolve hostname d: Temporary failure in name resolution
  • 从依赖地狱到依赖天堂PNPM
  • 01、通过内网穿透工具把家中闲置电脑变成在线服务器