Sep 06 2009

Want to use Spring 3.0 milestone release from Maven?

Published by michael at 11:12 pm under Java, Maven, Spring

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:

Spring/Maven Repositories

Share and Enjoy:
  • Print
  • Sphinn
  • del.icio.us
  • Mixx
  • Google Bookmarks
  • Blogplay
  • Technorati
  • Twitter

Related posts:

  1. Maven, Log4j and javax.jms Log4j version 1.2.15 added features which has new dependencies on...
  2. How to find project dependencies in a Maven project It’s very useful to be able to see what...
  3. Maven pom.xml structure I wanted to see the full Maven pom.xml structure and...
  4. Spring XML and defining end of line characters in a bean property If you need to define and end of line character...

No responses yet

Trackback URI | Comments RSS

Leave a Reply