随笔分类 -  Maven

摘要:Maven多模块项目中,当创建第二个模块的时候,有时会报Failed to read artifact descriptor for xxx:jar 错误,原因在于子模块的相互依赖。以A,B两个子模块为例,B模块依赖A模块,而A模块位于本地仓库,这导致试图从本地仓库解析A模块依赖的父模块。如果没有i 阅读全文
posted @ 2022-09-13 17:51 民宿 阅读(1289) 评论(0) 推荐(0) 编辑
摘要:Guide to naming conventions on groupId, artifactId and version groupId will identify your project uniquely across all projects, so we need to enforce 阅读全文
posted @ 2021-11-14 20:24 民宿 阅读(110) 评论(0) 推荐(0) 编辑
摘要:在项目中使用Maven管理jar包依赖,往往会出现以下状况: 1、国内访问maven默认远程中央镜像特别慢; 2、使用阿里的镜像替代远程中央镜像; 3、阿里云镜像中缺少部分jar包; 4、同时使用私有仓库和公有仓库; 针对以上情况,我们就需要让Maven支持多仓库配置。 单独仓库配置 当只配置一个仓 阅读全文
posted @ 2021-07-23 15:31 民宿 阅读(18585) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示