Spring 3.0 和 Maven
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
它应该
代替
It should be
instead of