怎么遇到的

加入了一个新的项目团队,在新机子上从新配置运行 Java 代码,配置项目。

我设置了项目 maven 依赖;安装了 lombok 插件;设置 JDK 版本;

设置项目 maven 依赖

xmlns="http://maven.apache.org/SETTINGS/1.2.0"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.2.0 https://maven.apache.org/xsd/settings-1.2.0.xsd">

【你的本地仓库路径】

aliyunmaven

central

aliyun

https://maven.aliyun.com/nexus/content/groups/public/

安装 lombok

设置JDK版本

出现问题

等待安装依赖…

会报错 spring-cloud-dependencies:pom:Finchley.M8 不存在

Could not find artifact org.springframework.cloud:spring-cloud-dependencies:pom:Finchley.M8 in aliyunmaven (https://maven.aliyun.com/nexus/content/groups/public/)

解决方法

在根 pom.xml 最后添加:

org.springframework.cloud

spring-cloud-dependencies

Finchley.M8

pom

import

spring-milestones

Spring Milestones

https://repo.spring.io/milestone

重新导入后,

maven clean

maven install

所需依赖下载成功。

解决后,为了要和项目组同事保持一致,防止不小心把它提交上去,pom.xml 后面补充的这段代码我选择了删掉。

问题解决。

相关文章

评论可见,请评论后查看内容,谢谢!!!
 您阅读本篇文章共花了: