[英]Maven dependency for commons-fileupload and commons-io
我想通過STS將commons-fileupload和commons-io庫添加到我的項目中。 當我試圖在我的pom.xml中添加依賴項並更新它時,我繼續收到以下所有版本的錯誤
Maven dependency problem
ArtifactDescriptorException: Failed to read artifact descriptor for commons-fileupload:commons-fileupload:jar:1.1:
ArtifactResolutionException: Failure to transfer commons-fileupload:commons-fileupload:pom:1.1 from http://repo1.maven.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 commons-fileupload:commons-fileupload:pom:1.1 from/to central (http://repo1.maven.org/maven2): Connect times out
我試着從mvn查找:
http://mvnrepository.com/artifact/commons-io/commons-io/2.4
http://mvnrepository.com/artifact/commons-fileupload/commons-fileupload/1.2.2
我沒有其他庫的問題,特別是commons-logging。
我正在使用SpringSource Tool Suite版本:2.9.2.RELEASE用於我的Spring項目。
首先刪除您的本地存儲庫(可能只是commons-io etc文件夾),然后在以下URL下僅檢查Maven Central:
http://search.maven.org/
在哪里找到所需的依賴項:
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.4</version>
</dependency>
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.