在pom.xml文件中添加以下依賴項(xiàng)時(shí),獲取ArtifactDescriptorException<dependency> <groupId>org.mockito</groupId> <artifactId>mockito-all</artifactId> <version>1.10.19</version> <scope>test</scope></dependency>問(wèn)題:Description Resource Path Location TypeArtifactDescriptorException: 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版本的問(wèn)題是什么。任何幫助都會(huì)有所幫助。謝謝!
ArtifactDescriptorException,同時(shí)添加了依賴嘲諷1.0.1.19版本
繁星點(diǎn)點(diǎn)滴滴
2021-04-02 18:14:41