spring-boot整合smart-doc推送接口文档到torna报错Failure to find xxx... resolution will not be reattempted until

本文介绍了在spring-boot项目中,使用smart-doc推送接口文档到torna时遇到的'Failure to find xml-apis:xml-apis-ext:jar:sources:1.3.04'报错的解决过程。问题源于特定jar包更新失败,通过在pom.xml中配置排除某些不需要编译的jar包,成功解决了此问题。详细解决方案可参考指定的博客链接。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

spring-boot整合smart-doc推送接口文档到torna报错Failure to find xxx… resolution will not be reattempted until the update问题解决

最近一直可以正常推送接口文档到torna,但是有连续两天一直推送不成功,报xml-apis xml-apis-ext的jar无法更新
原始报错信息是:
Failure to find xml-apis:xml-apis-ext:jar:sources:1.3.04 in xxx repository was cached in the local repository, resolution will not be reattempted until the update interval of releases has elapsed or updates are forced

在网上也查找了这个报错的解决方法,但是都没有生效,在项目中搜索xml-apis,但是没有找到相关依赖,一直困扰了两天。

因此在网上查找推送到torna的文档,在这篇文章中找到了解决方法,可以在pom中配置不需要编译的jar包

					<excludes>
                        xml-apis:xml-apis-ext
                    </excludes>

在这里插入图片描述
添加配置后,重新运行推送命令就成功推送接口到torna了
在这里插入图片描述

整个配置过程及配置参数详解可以参考原文
https://blog.youkuaiyun.com/weixin_44158741/article/details/115728168

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值