私は、Spring RESTの例exaplained hereを試しています。 プロジェクトのソースはhereです。mavenの問題ArtifactDescriptorException
ファイルを解凍し、トップフォルダの名前を「myproject」に変更し、それを既存のmavenプロジェクトとしてeclipseにインポートしました。しかし、春の瓶が欠けているため、多くの編集上の問題があることがわかりました。これは、mavenがこれらのjarファイルをインポートできないためです。私はのpom.xmlをチェックすると、私は日食見下記のエラーで文句を言っている:
ArtifactDescriptorException: Failed to read artifact descriptor for com.fasterxml.jackson.core:jackson-databind:jar:2.2.2: ArtifactResolutionException: Failure to transfer com.fasterxml.jackson.core:jackson-databind:pom:2.2.2 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 com.fasterxml.jackson.core:jackson-databind:pom:2.2.2 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.2.2/jackson-databind-2.2.2.pom
と
ArtifactDescriptorException: Failed to read artifact descriptor for com.fasterxml.jackson.core:jackson-databind:jar:2.2.2: ArtifactResolutionException: Failure to transfer com.fasterxml.jackson.core:jackson-databind:pom:2.2.2 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 com.fasterxml.jackson.core:jackson-databind:pom:2.2.2 from/to central (http://repo.maven.apache.org/maven2): connection timed out to http://repo.maven.apache.org/maven2/com/fasterxml/jackson/core/jackson-databind/2.2.2/jackson-databind-2.2.2.pom
私はので、ここで苦労をMavenのために新しいです。それを修正する方法を教えてください。
ありがとうございます。
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.2.3</version>
をと-Uフラグを使用して、Mavenのアプリケーションを実行しよう:
「-U」は意味がありません。それはSNAPSHOTのためでありリリースのためではありません。 – khmarbaise