对于commons-fileupload和commons-io的Maven依赖

pak*_*tin 2 maven sts-springsourcetoolsuite apache-commons-fileupload

我想通过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
Run Code Online (Sandbox Code Playgroud)

我试图从mvn查找

http://mvnrepository.com/artifact/commons-io/commons-io/2.4
http://mvnrepository.com/artifact/commons-fileupload/commons-fileupload/1.2.2
Run Code Online (Sandbox Code Playgroud)

我没有其他库的问题,特别是commons-logging Im使用SpringSource Tool Suite版本:2.9.2.RELEASE用于我的Spring项目

感谢所有的答复

khm*_*ise 8

首先删除您的本地存储库(可能只是commons-io etc文件夹),然后在以下URL下仅检查Maven Central:

http://search.maven.org/
Run Code Online (Sandbox Code Playgroud)

在哪里找到所需的依赖项:

<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>
Run Code Online (Sandbox Code Playgroud)