Spring 3.1.2 dependency not resolved
我无法将Spring Framework版本从3.0.1更新到3.1.3。
这是我通过mvn安装时遇到的错误。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | Downloading: http://repo.springsource.org/libs-release/org/springframework/org.springframework.core/3.1.3.RELEASE/org.springframework.core-3.1.3.RELEASE.pom Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.core/3.1.3.RELEASE/org.springframework.core-3.1.3.RELEASE.pom [WARNING] The POM for org.springframework:org.springframework.core:jar:3.1.3.RELEASE is missing, no dependency information available Downloading: http://repo.springsource.org/libs-release/org/springframework/spring-tx/maven-metadata.xml Downloading: http://repo1.maven.org/maven2/org/springframework/spring-tx/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/org/springframework/spring-tx/maven-metadata.xml (2 KB at 3.5 KB/sec) Downloaded: http://repo.springsource.org/libs-release/org/springframework/spring-tx/maven-metadata.xml (2 KB at 1.0 KB/sec) Downloading: http://repo1.maven.org/maven2/org/springframework/spring-context/maven-metadata.xml Downloading: http://repo.springsource.org/libs-release/org/springframework/spring-context/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/org/springframework/spring-context/maven-metadata.xml (2 KB at 5.9 KB/sec) Downloaded: http://repo.springsource.org/libs-release/org/springframework/spring-context/maven-metadata.xml (3 KB at 3.6 KB/sec) Downloading: http://repo1.maven.org/maven2/org/springframework/spring-beans/maven-metadata.xml Downloading: http://repo.springsource.org/libs-release/org/springframework/spring-beans/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/org/springframework/spring-beans/maven-metadata.xml (2 KB at 7.8 KB/sec) Downloaded: http://repo.springsource.org/libs-release/org/springframework/spring-beans/maven-metadata.xml (2 KB at 2.2 KB/sec) Downloading: http://repo.springsource.org/libs-release/org/springframework/spring-core/maven-metadata.xml Downloading: http://repo1.maven.org/maven2/org/springframework/spring-core/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/org/springframework/spring-core/maven-metadata.xml (2 KB at 4.7 KB/sec) Downloaded: http://repo.springsource.org/libs-release/org/springframework/spring-core/maven-metadata.xml (3 KB at 2.8 KB/sec) Downloading: http://repo.springsource.org/libs-release/org/springframework/spring-expression/maven-metadata.xml Downloading: http://repo1.maven.org/maven2/org/springframework/spring-expression/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/org/springframework/spring-expression/maven-metadata.xml (759 B at 4.4 KB/sec) Downloaded: http://repo.springsource.org/libs-release/org/springframework/spring-expression/maven-metadata.xml (831 B at 1.2 KB/sec) Downloading: http://repo.springsource.org/libs-release/org/springframework/spring-beans/maven-metadata.xml Downloading: http://repo1.maven.org/maven2/org/springframework/spring-beans/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/org/springframework/spring-beans/maven-metadata.xml (2 KB at 8.0 KB/sec) Downloaded: http://repo.springsource.org/libs-release/org/springframework/spring-beans/maven-metadata.xml (2 KB at 2.2 KB/sec) Downloading: http://repo1.maven.org/maven2/org/springframework/spring-tx/maven-metadata.xml Downloading: http://repo.springsource.org/libs-release/org/springframework/spring-tx/maven-metadata.xml Downloaded: http://repo1.maven.org/maven2/org/springframework/spring-tx/maven-metadata.xml (2 KB at 4.6 KB/sec) Downloaded: http://repo.springsource.org/libs-release/org/springframework/spring-tx/maven-metadata.xml (2 KB at 1.7 KB/sec) Downloading: http://repo.springsource.org/libs-release/org/springframework/org.springframework.beans/3.1.3.RELEASE/org.springframework.beans-3.1.3.RELEASE.pom Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.beans/3.1.3.RELEASE/org.springframework.beans-3.1.3.RELEASE.pom [WARNING] The POM for org.springframework:org.springframework.beans:jar:3.1.3.RELEASE is missing, no dependency information available Downloading: http://repo.springsource.org/libs-release/org/springframework/org.springframework.context/3.1.3.RELEASE/org.springframework.context-3.1.3.RELEASE.pom Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.context/3.1.3.RELEASE/org.springframework.context-3.1.3.RELEASE.pom [WARNING] The POM for org.springframework:org.springframework.context:jar:3.1.3.RELEASE is missing, no dependency information available Downloading: http://repo.springsource.org/libs-release/org/springframework/org.springframework.core/3.1.3.RELEASE/org.springframework.core-3.1.3.RELEASE.jar Downloading: http://repo.springsource.org/libs-release/org/springframework/org.springframework.beans/3.1.3.RELEASE/org.springframework.beans-3.1.3.RELEASE.jar Downloading: http://repo.springsource.org/libs-release/org/springframework/org.springframework.context/3.1.3.RELEASE/org.springframework.context-3.1.3.RELEASE.jar Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.core/3.1.3.RELEASE/org.springframework.core-3.1.3.RELEASE.jar Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.beans/3.1.3.RELEASE/org.springframework.beans-3.1.3.RELEASE.jar Downloading: http://repo1.maven.org/maven2/org/springframework/org.springframework.context/3.1.3.RELEASE/org.springframework.context-3.1.3.RELEASE.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 16.128s [INFO] Finished at: Sat Dec 08 22:16:08 GMT+05:30 2012 [INFO] Final Memory: 4M/81M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal on project commons: Could not resolve dependencies for project HFC:commons:jar:1.0: The following artifacts could not be resolved: org.springframework:org.springframework.core:jar:3.1.3.RELEASE, org.springframework:org.springframework.beans:jar:3.1.3.RELEASE, org.springframework:org.springframework.context:jar:3.1.3.RELEASE: Could not find artifact org.springframework:org.springframework.core:jar:3.1.3.RELEASE in repository.springframework.maven.release (http://repo.springsource.org/libs-release) -> [Help 1] |
我的pom.xml是这样的
我在这里想念什么?
看来您使用的是错误的artifactId。
您应该使用:
1 2 3 4 5 | <dependency> <groupId>org.springframework</groupId> spring-core</artifactId> <version>3.1.3.RELEASE</version> </dependency> |
看这里。