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>
&l开发者_如何学JAVAt;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?
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>
精彩评论