I recently converted a Java/Spring webapp from Ant to Maven. The webapp uses many of the Spring modules, including Spring Security, MVC, Web Flow, AOP, and Hibernate.

Since it took me hours to sort out all of the Maven dependencies, I figured that I’d post the working pom.xml here, so that it will hopefully save someone a lot of time, by giving them a starting point.

This pom.xml file uses Spring 2.5.4, Spring Security 2.0.4, Web Flow 2.0.5, MySQL, Hibernate 3.2.6.ga, and DisplayTag 1.2

If you use this as a starting point for your project, please change the artifactId and name values appropriately.