当前位置: 首页 > 知识库问答 >
问题:

Spring 3.1.2依赖项未解析

刘才俊
2023-03-14

    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]

共有1个答案

傅穆冉
2023-03-14

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

您应该使用:

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

看这里。

 类似资料:
  • 当我试图导入依赖项时,我收到以下错误: 请帮帮我,我哪里错了? 事先谢谢你

  • 我想使用hbase hortonworks连接器。github指南 但是我不知道如何在我的项目中导入它。我有以下build.sbt: 它给出了以下未解决的依赖关系: 错误:导入SBT项目时出错: [警告]==本地:尝试[警告]常春藤。xml[警告]==公共:已尝试[警告] https://repo1.maven.org/maven2/com/hortonworks/shc/1.1.2-2.1-s_

  • 在使用Gradle构建的一个简单的Spring Java项目中,我使用io.Spring.dependency-management应用BOM,该BOM应该在全局指定依赖版本。 现在在BOM中,我已经覆盖了jackson-databind(2.9.5)的默认版本,从Spring Boot2.0.2.Release到2.9.10.4版本。 我在dependencyManagement部分指定了这个B

  • 我给ivy添加了一个依赖项(我们称之为a)。在maven central中具有pom文件的xml。Ivy使用ibiblio来解析maven依赖项。添加到常春藤中的依赖项(A)。xml具有可传递依赖项(B)。到目前为止,一切都很好。传递依赖(B)的依赖(C)不能用常春藤来解决。 我在常春藤上定义了一个新的名字。如下所示的xml: 在B的pom文件中,C在编译和测试范围中定义如下: 当我在ivy的缓存

  • 这是build.sbt文件: 更新:查看解析器 [play21-osm]$show resolvers[信息]列表(Typesafe Releases repository:http://repo.Typesafe.com/Typesafe/Releases/,Typesafe relepository:http://Typesafe.artifactoryonline.com/Typesafe,

  • 我正在将一个组件打包到jar文件中,并试图将其安装到另一个系统中进行开发。我正在使用maven安装该文件,如下所示(摘自https://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html): Maven报告jar已成功安装: 我看到jar和pom文件都放在/home/user/中。m