我在下载maven依赖项时丢失了互联网连接。 稍后当我尝试使用命令
更新它时mvn clean install -U
我收到以下错误:
- Failure to transfer edu.mit:jwi:jar:2.2.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 edu.mit:jwi:jar:2.2.3 from/to
central (https://repo.maven.apache.org/maven2): repo.maven.apache.org org.eclipse.aether.transfer.ArtifactTransferException: Failure to transfer
edu.mit:jwi:jar:2.2.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 edu.mit:jwi:jar:2.2.3 from/to central (https://
repo.maven.apache.org/maven2): repo.maven.apache.org at
org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:238) at
org.eclipse.aether.internal.impl.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:206) at
我该怎么做才能解决依赖关系?
答案 0 :(得分:1)
从您当地的maven存储库中删除edu.mit:jwi:jar:2.2.3
(~/.m2/repository/edu/mit/jwi)
,然后重试。