org.eclipse.aether.resolution.ArtifactResolutionException: Failure to find jre:jre:zip:call:1.0.0-SNAPSHOT in http://download.eclipse.org/recommenders/models/oxygen/ was cached in the local repository, resolution will not be reattempted until the update interval of models has elapsed or updates are forced at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:453) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:255) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolveArtifact(DefaultArtifactResolver.java:232) at org.eclipse.aether.internal.impl.DefaultRepositorySystem.resolveArtifact(DefaultRepositorySystem.java:303) at org.eclipse.recommenders.models.ModelRepository.resolveInternal(ModelRepository.java:193) at org.eclipse.recommenders.models.ModelRepository.resolve(ModelRepository.java:172) at org.eclipse.recommenders.internal.models.rcp.EclipseModelRepository.resolve(EclipseModelRepository.java:168) at org.eclipse.recommenders.internal.models.rcp.DownloadModelArchiveJob.run(DownloadModelArchiveJob.java:76) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56) Caused by: org.eclipse.aether.transfer.ArtifactNotFoundException: Failure to find jre:jre:zip:call:1.0.0-SNAPSHOT in http://download.eclipse.org/recommenders/models/oxygen/ was cached in the local repository, resolution will not be reattempted until the update interval of models has elapsed or updates are forced at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:240) at org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:215) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.gatherDownloads(DefaultArtifactResolver.java:594) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.performDownloads(DefaultArtifactResolver.java:512) at org.eclipse.aether.internal.impl.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:430) ... 8 more
时间: 2023-10-02 07:10:00 浏览: 226
这个错误是由于无法在指定的远程仓库中找到所需的 jre:jre:zip:call:1.0.0-SNAPSHOT 构件引起的。根据错误信息,该构件在 http://download.eclipse.org/recommenders/models/oxygen/ 上未被找到,并且已经缓存在本地仓库中。
解决这个问题的方法有两种:
1. 等待更新:根据错误信息,解决方案之一是等待一段时间,直到模型的更新间隔过去或强制进行更新。这可能是由于远程仓库尚未更新或本地仓库的缓存未被清除导致的。在等待一段时间后,您可以再次尝试解析构件。
2. 强制更新:如果您需要立即解决此问题,您可以尝试强制更新模型。您可以使用以下命令来清除本地仓库的缓存,并强制从远程仓库重新下载构件:
```
mvn dependency:purge-local-repository
```
请注意,这个命令会清除整个本地仓库的缓存,所以请确保在执行之前备份任何重要的构件。
请根据您的具体需求选择适合您的解决方案。希望这能帮到您!如果您有任何其他问题,请随时问我。
相关问题
这是我的整个错误Downloading from central: https://repo.maven.apache.org/maven2/io/takari/aether/takari-local-repository/0.11.3/takari-local-repository-0.11.3.pom [ERROR] Error executing Maven. [ERROR] Extension io.takari.aether:takari-local-repository:0.11.3 or one of its dependencies could not be resolved: Failed to read artifact descriptor for io.takari.aether:takari-local-repository:jar:0.11.3 [ERROR] Caused by: Failed to read artifact descriptor for io.takari.aether:takari-local-repository:jar:0.11.3 [ERROR] Caused by: Failed to read artifact descriptor for io.takari.aether:takari-local-repository:jar:0.11.3 [ERROR] Caused by: The following artifacts could not be resolved: io.takari.aether:takari-local-repository:pom:0.11.3 (absent): Could not transfer artifact io.takari.aether:takari-local-repository:pom:0.11.3 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.112.215] failed: connect timed out [ERROR] Caused by: Could not transfer artifact io.takari.aether:takari-local-repository:pom:0.11.3 from/to central (https://repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.112.215] failed: connect timed out [ERROR] Caused by: Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.112.215] failed: connect timed out [ERROR] Caused by: connect timed out
这个错误提示显示 Maven 在下载依赖库时遇到了问题,可能是由于网络连接不稳定导致的。建议你检查你的网络连接是否正常,并且尝试重新执行命令。如果问题仍然存在,可以尝试更换 Maven 的镜像源或者等待一段时间后再次尝试。如果问题仍然无法解决,可以尝试在命令后添加参数 `-X`,这样 Maven 会输出更详细的错误信息,可以帮助你更好地定位问题所在。
阅读全文