0

我无法将我的 spring 框架版本从 3.0.1 更新到 3.1.3。

这是我在通过 mvn 安装时遇到的错误。

    下载:http://repo.springsource.org/libs-release/org/springframework/org.springframework.core/3.1.3.RELEASE/org.springframework.core-3.1.3.RELEASE.pom
    下载:http://repo1.maven.org/maven2/org/springframework/org.springframework.core/3.1.3.RELEASE/org.springframework.core-3.1.3.RELEASE.pom
    [警告] org.springframework:org.springframework.core:jar:3.1.3.RELEASE 的 POM 丢失,没有可用的依赖信息
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-tx/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-tx/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-tx/maven-metadata.xml(2 KB,3.5 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-tx/maven-metadata.xml(2 KB,1.0 KB/秒)
    下载:http://repo1.maven.org/maven2/org/springframework/spring-context/maven-metadata.xml
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-context/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-context/maven-metadata.xml(2 KB,5.9 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-context/maven-metadata.xml(3 KB,3.6 KB/秒)
    下载:http://repo1.maven.org/maven2/org/springframework/spring-beans/maven-metadata.xml
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-beans/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-beans/maven-metadata.xml(2 KB,7.8 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-beans/maven-metadata.xml(2 KB,2.2 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-core/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-core/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-core/maven-metadata.xml(2 KB,4.7 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-core/maven-metadata.xml(3 KB,2.8 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-expression/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-expression/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-expression/maven-metadata.xml(759 B,4.4 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-expression/maven-metadata.xml(831 B,1.2 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-beans/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-beans/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-beans/maven-metadata.xml(2 KB,8.0 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-beans/maven-metadata.xml(2 KB,2.2 KB/秒)
    下载:http://repo1.maven.org/maven2/org/springframework/spring-tx/maven-metadata.xml
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-tx/maven-metadata.xml
    下载:http://repo1.maven.org/maven2/org/springframework/spring-tx/maven-metadata.xml(2 KB,4.6 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/spring-tx/maven-metadata.xml(2 KB,1.7 KB/秒)
    下载:http://repo.springsource.org/libs-release/org/springframework/org.springframework.beans/3.1.3.RELEASE/org.springframework.beans-3.1.3.RELEASE.pom
    下载:http://repo1.maven.org/maven2/org/springframework/org.springframework.beans/3.1.3.RELEASE/org.springframework.beans-3.1.3.RELEASE.pom
    [警告] org.springframework:org.springframework.beans:jar:3.1.3.RELEASE 的 POM 丢失,没有可用的依赖信息
    下载:http://repo.springsource.org/libs-release/org/springframework/org.springframework.context/3.1.3.RELEASE/org.springframework.context-3.1.3.RELEASE.pom
    下载:http://repo1.maven.org/maven2/org/springframework/org.springframework.context/3.1.3.RELEASE/org.springframework.context-3.1.3.RELEASE.pom
    [警告] org.springframework:org.springframework.context:jar:3.1.3.RELEASE 的 POM 丢失,没有可用的依赖信息
    下载:http://repo.springsource.org/libs-release/org/springframework/org.springframework.core/3.1.3.RELEASE/org.springframework.core-3.1.3.RELEASE.jar
    下载:http://repo.springsource.org/libs-release/org/springframework/org.springframework.beans/3.1.3.RELEASE/org.springframework.beans-3.1.3.RELEASE.jar
    下载:http://repo.springsource.org/libs-release/org/springframework/org.springframework.context/3.1.3.RELEASE/org.springframework.context-3.1.3.RELEASE.jar
    下载:http://repo1.maven.org/maven2/org/springframework/org.springframework.core/3.1.3.RELEASE/org.springframework.core-3.1.3.RELEASE.jar
    下载:http://repo1.maven.org/maven2/org/springframework/org.springframework.beans/3.1.3.RELEASE/org.springframework.beans-3.1.3.RELEASE.jar
    下载:http://repo1.maven.org/maven2/org/springframework/org.springframework.context/3.1.3.RELEASE/org.springframework.context-3.1.3.RELEASE.jar
    [信息] --------------------------------------------- -------------------------
    [信息] 构建失败
    [信息] --------------------------------------------- -------------------------
    [INFO] 总时间:16.128s
    [INFO] 完成时间:2012 年 12 月 8 日星期六 22:16:08 GMT+05:30
    [INFO] 最终内存:4M/81M
    [信息] --------------------------------------------- -------------------------
    [错误] 无法在项目公共资源上执行目标:无法解析项目 HFC:commons:jar:1.0 的依赖项:无法解析以下工件: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: 找不到工件 org.springframework:org.springframework.core :jar:3.1.3.RELEASE 在 repository.springframework.maven.release (http://repo.springsource.org/libs-release) -> [帮助 1]

我的 pom.xml 是这样的

我在这里想念什么。?

4

1 回答 1

1

看起来您使用了错误的 artifactId。

你应该使用:

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-core</artifactId>
    <version>3.1.3.RELEASE</version>
</dependency>

这里

于 2012-12-08T18:31:41.640 回答