Sep 06 2009
Want to use Spring 3.0 milestone release from Maven?
I wanted to add the Spring 3.0 M4 milestone early access release to a Maven project to test out some of the new features. However SpringĀ milestone releases are not readily available in the standard public Maven repositories, so what do you do?
For the full explanation check out the link to “Spring/Maven Repositories” link in the bottom. For a quick 1-2-3 step solution add this to the <repositories> section in your Maven pom.xml file so that Maven can find Spring’s early access milestone releases:
<repository>
<id>spring-milestone</id>
<name>Spring Portfolio Milestone Repository</name>
<url>http://s3.amazonaws.com/maven.springframework.org/milestone</url>
</repository>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<packaging>jar</packaging>
<version>3.0.0.M4</version>
</dependency>
This Spring article has additional details on this topic e.gĀ how to access snapshot releases:
Related posts:
- Maven, Log4j and javax.jms Log4j version 1.2.15 added features which has new dependencies on...
- How to find project dependencies in a Maven project It’s very useful to be able to see what...
- Maven pom.xml structure I wanted to see the full Maven pom.xml structure and...
- Spring XML and defining end of line characters in a bean property If you need to define and end of line character...