java - Spring starter 项目在创建项目时带来错误
问题描述
我正在通过 Eclipse 使用 Spring 启动项目创建一个演示项目,并且我将 Web、Actuator 和 Webtools 包含在这个演示项目中。下载依赖项后,演示项目在 pom.xml 中显示错误,错误消息如下:
***" Multiple annotations found at this line:
- Failure to transfer org.latencyutils:LatencyUtils:jar:2.0.3 from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be
reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.latencyutils:LatencyUtils:jar:2.0.3 from/to central
(https://repo.maven.apache.org/maven2): repo.maven.apache.org org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer org.latencyutils:LatencyUtils:jar:2.0.3
from https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates
are forced. Original error: Could not transfer artifact org.latencyutils:LatencyUtils:jar:2.0.3 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org at "***
注意:这些只是前几行。
IDE 和 JDK 详细信息:
面向企业 Java 开发人员的 Eclipse IDE。版本:2018-12 (4.10.0) 内部版本号:20181214-0600
JDK 1.8
我尝试更新 eclipse 和插件,但更新过程也仍然不成功。
我创建了多个演示项目,具有不同的依赖项组合,我发现这个错误来自于 Actuator 依赖项。
解决方案
推荐阅读
- java - 从 Java 应用程序将数据块保存到数据库中
- sql - 如何使用结果集作为输入从日历表中获取所有行
- jackson - Jackson TreeModel vs 数据绑定
- jquery - 为什么 $.get 在执行此代码时会延迟?
- javascript - 在窗口调整大小时更改元素的大小
- php - Wordpress 在帖子内容中错误地显示 HTML 实体和十六进制实体
- typescript - 打字稿可以缩小泛型类型中的联合类型吗?
- django - 变量未显示在 Django 模板上
- r - R:本地主机上的 H2O 初始化问题(.h2o.startJar 中的错误:返回代码 = 1)
- c# - jQuery 发布到控制器并重定向到 ASP.NET MVC 视图