Reputation: 309
I'm new to maven. I'm getting the following error, which I don't understand. Can you please help me to understand how to fix it ?
The following artifacts could not be resolved: org.springframework:org.springframework.core:jar:3.0.5.RELEASE, org.springframework:org.springframework.asm:jar:3.0.5.RELEASE: Failure to find org.springframework:org.springframework.core:jar:3.0.5.RELEASE in 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 -> [Help 1]
Upvotes: 4
Views: 7213
Reputation: 94499
Try running your command with the -U
option. Here is more information.
Upvotes: 1
Reputation: 950
Yeah looks like your pom dependancy aren't marked correctly. Googling sample Spring MVC app and lookin sample pom will be helpful.
Upvotes: 0
Reputation: 424
It would be more helpful if you provide your pom file with the question, but judging from a stacktrace it seems that dependency is not declared correctly. Specifically, correct artifact name for Spring is "spring-core" and not "org.springframework.core", So in your pom.xml file you should have:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>3.0.5.RELEASE</version>
</dependency>
You can find a correct dependency definition at public Maven Repo search engines (like http://mvnrepository.com or http://search.maven.org). Here is the the link to Spring Core artifact: http://mvnrepository.com/artifact/org.springframework/spring-core/3.0.5.RELEASE
Btw, the error that you see is in following format:
<groupId>:<artifactId>:<packaging>:<version>
Upvotes: 1