microblog | 微博客
原创
访问
0
获赞
0
评论
相关推荐
暂无数据
最新文章
暂无数据
热门文章
暂无数据

maven项目依赖出现Failed to read artifact descriptor for xxx

写完bug就找女朋友 2023年08月26日 11:30:44 562 3273 0
分类专栏: Java SpringCloud SpringBoot 文章标签: Maven Springcloud

问题描述

      在写springcloud项目的时候,A项目依赖B项目提示出现:Failed to read artifact descriptor for com.wxz:microblog:jar:0.0.1-SNAPSHOT,如下图所示:

image.png

解决办法

      找到被依赖的B项目,将pom文件中的dependencyManagement属性里面的dependencies属性里面的dependencyscope属性值改为compile,即

<dependencyManagement> <dependencies> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-dependencies</artifactId> <version>${spring-cloud.version}</version> <type>pom</type> <scope>compile</scope> </dependency> </dependencies> </dependencyManagement>

如下图所示:
image.png
      然后即可解决问题



评论区

登录后参与交流、获取后续更新提醒

目录
暂无数据