maven阿里云镜像找不到nacos的jar包

1,291 阅读1分钟

maven阿里云镜像找不到nacos的jar包

提示: com.alibaba.cloud:spring-cloud-starter-alibaba-nacos-discovery:jar:unknown was not found in maven.aliyun.com/repository/… during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of aliyunmaven has elapsed or updates are forced

解决方法:

在服务父工程中添加spring-cloud-alibaba的管理依赖

<dependency>
    <groupId>com.alibaba.cloud</groupId>
    <artifactId>spring-cloud-alibaba-dependencies</artifactId>
    <version>2.2.5.RELEASE</version>
    <type>pom</type>
    <scope>import</scope>
</dependency>