解决 spring-cloud-dependencies:pom:Finchley.M8 的问题
Dependencies
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
项目地址:https://gitcode.com/gh_mirrors/de/Dependencies
·
怎么遇到的
加入了一个新的项目团队,在新机子上从新配置运行 Java 代码,配置项目。
- 我设置了项目 maven 依赖;
- 安装了 lombok 插件;
- 设置 JDK 版本;
设置项目 maven 依赖

<?xml version="1.0" encoding="UTF-8"?>
<settings
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">
<localRepository>【你的本地仓库路径】</localRepository>
<servers></servers>
<mirrors>
<mirror>
<id>aliyunmaven</id>
<mirrorOf>central</mirrorOf>
<name>aliyun</name>
<url>https://maven.aliyun.com/nexus/content/groups/public/</url>
</mirror>
</mirrors>
<profiles></profiles>
</settings>
安装 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 最后添加:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-dependencies</artifactId>
<version>Finchley.M8</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
<repositories>
<repository>
<id>spring-milestones</id>
<name>Spring Milestones</name>
<url>https://repo.spring.io/milestone</url>
</repository>
</repositories>
重新导入后,
maven clean
maven install
所需依赖下载成功。
解决后,为了要和项目组同事保持一致,防止不小心把它提交上去,pom.xml 后面补充的这段代码我选择了删掉。
问题解决。
A rewrite of the old legacy software "depends.exe" in C# for Windows devs to troubleshoot dll load dependencies issues.
最近提交(Master分支:2 个月前 )
1997a400 - 3 年前
2f423539 - 3 年前
新一代开源开发者平台 GitCode,通过集成代码托管服务、代码仓库以及可信赖的开源组件库,让开发者可以在云端进行代码托管和开发。旨在为数千万中国开发者提供一个无缝且高效的云端环境,以支持学习、使用和贡献开源项目。
更多推荐


所有评论(0)