2

Commons-fileuploadおよびcommons-ioライブラリをSTSを介してプロジェクトに追加したいと思います。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に問題はありません。SpringプロジェクトにSpringSourceToolSuiteバージョン:2.9.2.RELEASE
を 使用しています。

4

1 に答える 1

8

最初にローカル リポジトリを削除します (commons-io などのフォルダーのみの可能性があります)。さらに、次の 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>
于 2012-07-23T07:49:16.560 に答える