记录一个关于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默认拦截了导致下载不了资源直接报错。
再贴一下千问的解决界面: