2017-06-13 17 views
0

enter image description here行家cofiguration錯誤 - Git項目

而我特林使用Maven在文摘出現此錯誤

描述資源路徑位置類型故障轉移公地郎鹹平:公地郎鹹平:POM:2.1從https://repo.maven.apache.org/maven2緩存在本地存儲庫中,直到中央的更新時間間隔已過或強制更新後纔會重新解析分辨率。原始錯誤:無法傳輸工件commons-lang:commons-lang:pom:2.1 from/to central repo.maven.apache.org pom.xml/test line 1 Maven配置問題

+0

【未能轉移的依賴,在本地倉庫被緩存(可能的重複https://stackoverflow.com/questions/10684311/failure-to-transfer-dependency-被緩存在本地存儲庫中) –

+0

https://stackoverflow.com/questions/4856307/when-maven-says-resolution-will-not-be-reattempted-until-the-update-interval-of幫助? –

回答

0

您可以將<plugin>添加到<plugins>標籤,例如顯示如下: -

<plugins> 
     <plugin> 
      <groupId>org.apache.maven.plugins</groupId> 
      <artifactId>maven-compiler-plugin</artifactId> 
      <configuration> 
       <source>1.8</source> 
       <target>1.8</target> 
      </configuration> 
     </plugin> 

     <plugin> 
     <inherited>true</inherited> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-deploy-plugin</artifactId> 

     <configuration> 
      <updateReleaseInfo>true</updateReleaseInfo> 
     </configuration> 
     </plugin> 
    </plugins>