Sto provando l'esempio REST di primavera exaplained here. La sorgente del progetto è qui here.problema Maven ArtifactDescriptorException
Ho decompresso il file e ho rinominato la cartella principale in "myproject" e l'ho importato in eclipse come progetto maven esistente. Ma, ha osservato che molti problemi di compilazione a causa della mancanza di vasi di primavera. Immagino che questo sia dovuto al fatto che Maven non è in grado di importare questi vasi. Quando controllo il pom.xml, vedo eclissi si lamenta di errori di seguito:
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
e
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
Sono nuovo di Maven così in difficoltà qui. Per favore aiutami a risolverlo.
Grazie.
'-U' non ha senso, perché è per SNAPSHOT e non per le versioni. – khmarbaise