maven项目的pom.xml文件出现红色错误提示:ArtifactTransferException: Failure to transfer

  • maven项目的pom.xml文件出现红色错误提示,鼠标放上去提示:
    ArtifactTransferException: Failure to transfer org.deeplearning4j:deeplearning4j-ui-model:jar:0.7.1 from http://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.deeplearning4j:deeplearning4j-ui-model:jar:0.7.1 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.

  • 原因是maven本地仓库没有对应的jar包,需要需maven中央库下载下来,操作如下:
    项目右键,使用maven插件clean一下然后再install一下就好了,会自动从网络上下载jar包到本地仓库,下载完后刷新一下项目即可。

这里写图片描述

转至:https://blog.csdn.net/zhengxiangwen/article/details/65627887

猜你喜欢

转载自blog.csdn.net/lz6363/article/details/82505730