报错详情
代码语言:txt复制org.apache.flume:flume-ng-core:pom:1.10.1 failed to transfer from https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced. Original error: Could not transfer artifact org.apache.flume:flume-ng-core:pom:1.10.1 from/to central (https://repo.maven.apache.org/maven2): transfer failed for https://repo.maven.apache.org/maven2/org/apache/flume/flume-ng-core/1.10.1/flume-ng-core-1.10.1.pom
Try to run Maven import with -U flag (force update snapshots)
问题解析
Maven 在尝试从中央仓库下载 xxx:xx.xx.xx 时失败了,并且这个失败被缓存到了本地仓库中。在下一个更新周期之前,Maven 不会重新尝试下载。
解决这个问题的方法是强制更新缓存中的依赖项。可以通过在命令中添加 -U 参数来实现。
项目根目录下执行以下命令:
代码语言:shell复制mvn clean install -U