2017-05-29 94 views
1

下載Maven依賴關係時我丟失了互聯網連接。 後來當我嘗試使用命令互聯網連接丟失後的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 

我能做些什麼來解決依賴關係?

回答

1

從您的本地Maven存儲庫中刪除edu.mit:jwi:jar:2.2.3(~/.m2/repository/edu/mit/jwi)並重試。