[英]gradle configuration for powermock 1.7.4 and mockito 1.10.19
[英]ArtifactDescriptorException while adding dependency mockito 1.10.19 version
在pom.xml文件中添加以下依賴項時,獲取ArtifactDescriptorException
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.19</version>
<scope>test</scope>
</dependency>
問題:
Description Resource Path Location Type
ArtifactDescriptorException: Failed to read artifact descriptor for org.mockito:mockito-all:jar:1.10.19: ArtifactResolutionException: Failure to transfer org.mockito:mockito-all:pom:1.10.19 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.mockito:mockito-all:pom:1.10.19 from/to central (http://repo.maven.apache.org/maven2): repo.maven.apache.org pom.xml /mockito-example line 1 Maven Dependency Problem
但是,它與1.10.18或1.10.17一起正常工作
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<version>1.10.18</version>
<scope>test</scope>
</dependency>
我不了解1.10.19版本的問題。 任何幫助都會有所幫助。 謝謝!
聽起來較早的下載嘗試失敗。 如該消息所述, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
-通常更新間隔為24小時。
如果尚未嘗試過,建議使用強制更新選項mvn -U
。 (如果是在Eclipse中,則根據列標題判斷,請在Maven
/ Update project
對話框中查找Force Update
)。
僅供參考,可以從此處下載相同的工件版本。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.