Ich versuche das Spring REST Beispiel erklärt here. Die Projektquelle ist hier here.Maven Ausgabe ArtifactDescriptorException
Ich entzippte die Datei und benannte den obersten Ordner in 'myproject' um und importierte ihn als bestehendes Maven-Projekt in Eclipse. Aber beobachtet, dass viele Probleme mit der Kompilierung aufgrund fehlender Frühlingsgläser. Ich denke, das ist, weil Maven diese Gläser nicht importieren kann. Wenn ich die pom.xml überprüfen, sehe ich Eclipse mit folgenden Fehler beschweren:
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
und
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
Ich bin hier so kämpfen, um maven. Bitte helfen Sie mir, wie ich es beheben kann.
Vielen Dank.
'-U' macht keinen Sinn, denn es ist für SNAPSHOT's und nicht für Releases. – khmarbaise