Spring 3.0 和 Maven

发布于 2024-11-19 04:14:26 字数 1856 浏览 2 评论 0原文

我正在尝试使用 Maven 配置 Spring 3.0。我读过 http://blog. springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/

在我的 pom.xml 中,我定义了以下存储库:

<repositories>
    <repository>
        <id>com.springsource.repository.bundles.release</id>
        <name>EBR Spring Release Repository</name>
        <url>http://repository.springsource.com/maven/bundles/release</url>
    </repository>
    <repository>
        <id>com.springsource.repository.bundles.external</id>
        <name>EBR External Release Repository</name>
        <url>http://repository.springsource.com/maven/bundles/external</url>
    </repository>
</repositories>

然后我尝试使用最基本的依赖:

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>org.springframework.core</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

where

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <org.springframework.version>3.0.5-RELEASE</org.springframework.version>
</properties>

但是,如果他没有找到 spring-core。

[警告] org.springframework:org.springframework.core:jar:3.0.5-RELEASE 的 POM 丢失,没有可用的依赖项信息

[错误] 无法在项目 spring-recipes 上执行目标:无法解析项目组织的依赖项.obliquid:spring-recipes:war:0.0.1-SNAPSHOT:找不到工件com.springsource.repository.bundles.release 中的 org.springframework:org.springframework.core:jar:3.0.5-RELEASE (http://repository.springsource.com/maven/bundles/release) -> [求助1]

我该如何解决这个问题?

I'm trying to configure Spring 3.0 with Maven. I've read http://blog.springsource.com/2009/12/02/obtaining-spring-3-artifacts-with-maven/

In my pom.xml I've defined the following repositories:

<repositories>
    <repository>
        <id>com.springsource.repository.bundles.release</id>
        <name>EBR Spring Release Repository</name>
        <url>http://repository.springsource.com/maven/bundles/release</url>
    </repository>
    <repository>
        <id>com.springsource.repository.bundles.external</id>
        <name>EBR External Release Repository</name>
        <url>http://repository.springsource.com/maven/bundles/external</url>
    </repository>
</repositories>

Then I tried with the most basic dependency:

    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>org.springframework.core</artifactId>
        <version>${org.springframework.version}</version>
    </dependency>

where

<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <org.springframework.version>3.0.5-RELEASE</org.springframework.version>
</properties>

However, if he spring-core is not found.

[WARNING] The POM for org.springframework:org.springframework.core:jar:3.0.5-RELEASE is missing, no dependency information available

[ERROR] Failed to execute goal on project spring-recipes: Could not resolve dependencies for project org.obliquid:spring-recipes:war:0.0.1-SNAPSHOT: Could not find artifact org.springframework:org.springframework.core:jar:3.0.5-RELEASE in com.springsource.repository.bundles.release (http://repository.springsource.com/maven/bundles/release) -> [Help 1]

What can I do to solve the problem?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

花期渐远 2024-11-26 04:14:26

它应该

<org.springframework.version>3.0.5.RELEASE</org.springframework.version>

代替

<org.springframework.version>3.0.5-RELEASE</org.springframework.version>

It should be

<org.springframework.version>3.0.5.RELEASE</org.springframework.version>

instead of

<org.springframework.version>3.0.5-RELEASE</org.springframework.version>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文