« - »

Spring 3.0.0 and Maven

17 December 2009

First of all, it’s always best to read the instructions.

Second, if you were successfully using the last Spring 3 release candidate in your Maven project, you cannot simply pull up the pom.xml in an editor and change all “.RC3″ to “”. Actually, to be completely accurate, you can do that — you’ll just get a “Build Failed” when you attempt to build your project. The official name of the GA release of Spring 3 is not 3.0.0 — it’s 3.0.0.RELEASE. So … you can do a change all “.RC3″ to “.RELEASE” and that will actually work:

[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3 seconds
[INFO] Finished at: Thu Dec 17 07:33:41 PST 2009
[INFO] Final Memory: 4M/26M
[INFO] ------------------------------------------------------------------------

And since the artifacts are now coming from the main Maven repository, you can also remove this from your pom.xml:

  <id>Springframework milestone</id>

… unless, of course, you are also using the release candidates for Spring Security 3, which does not have a GA version out just yet. In that case, you just shot yourself in the foot by pulling that out prematurely. Not that I know anyone who would do that; I’m just saying …


Leave a reply

You must be logged in to post a comment.