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>
You can then add Spring 3.0 M4 as a dependency in your pom.xml file:
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<packaging>jar</packaging>
<version>3.0.0.M4</version>
</dependency>
If you’re looking for other Spring artifacts you can browse them using this Spring Maven artifact URL
This Spring article has additional details on this topic e.g how to access snapshot releases:
Comments
Leave a Comment