Reputation:
When I am trying to create new Project from File->New_>Maven Project, I obtain error:
Could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 from any of the configured repositories. Could not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://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 org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org Failure to transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from https://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 org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org
Upvotes: 0
Views: 225
Reputation: 2452
[...] was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
Try mvn clean install -U
to force the update. In Eclipse, that would be the Update Maven projects on startup in the global Maven settings.
If that still fails you, you could manually delete your local maven folder, by default the user-folder/.m2/repository, that should force a full refetch
Upvotes: 0
Reputation: 1932
Upvotes: 0