首頁  >  問答  >  主體

java - pom.xml报错

POM文件配置

<!-- http://mvnrepository.com/artifact/dom4j/dom4j -->
        <dependency>
            <groupId>dom4j</groupId>
            <artifactId>dom4j</artifactId>
            <version>1.6.1</version>
        </dependency>

下载成功了
头部报错,更新项目也不行

ArtifactTransferException: Failure to transfer xml-apis:xml-apis:jar:1.0.b2 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 
xml-apis:xml-apis:jar:1.0.b2 from/to central (http://repo.maven.apache.org/maven2): connection timed out to 
 http://repo.maven.apache.org/maven2/xml-apis/xml-apis/1.0.b2/xml-apis-1.0.b2.jar
PHPzPHPz2765 天前534

全部回覆(1)我來回復

  • 迷茫

    迷茫2017-04-18 09:17:10

    遠端倉庫連線超時,可能你機器連不上遠端倉庫或遠端倉庫掛了,你可以選國內的倉庫試試

    回覆
    0
  • 取消回覆