Take the 2-minute tour ×

I created a Maven project in Eclipse using the webapp artifact and put the following lines in the .pom file upon reading an online tutorial.


In the tutorial however, the version is 2.5.6. I replaced it with 3.0.5.RELEASE considering its the latest version.

But for this version eclipse is giving out an error

Missing artifact org.springframework:spring:jar:3.0.5.RELEASE:compile

What does this mean ? Can I add the required jar files to a lib folder and ask .pom file to take it from there as its being done in another tutorial on spring source website that uses Ant ?

Also Maven projects come with a different directory structure and seems to be doing much more than what Ant does in the spring source tutorial.

I am completely new to maven. in fact only a beginner in developing web applications using java. I did some tutorials from spring source and could deploy and run a spring mvc hello world app on apache tomcat. For this I used Ant and found it a great tool. But as I checked-out some example apps from spring source repo and it seems that Maven is more preferred and powerful than Ant. I am finding it a bit difficult to understand though.


share|improve this question

2 Answers 2

up vote 4 down vote accepted

In version 3, Spring no longer provides the all-in-one Spring jar.

Note: The spring.jar artifact that contained almost the entire framework is no longer provided.


Depending on your project needs, use


where ${artifactId} may be e.g.

  • spring-context (IOC core, standard ApplicationContext implementations)
  • spring-orm (ORM technologies: Hibernate, JPA, (I|My)Batis)
  • spring-webmvc (The Spring Web MVC framework)
  • spring-aop (Aspect-Oriented Programming support)


The selected dependencies will pull in their required libraries as transitive dependencies, so you usually just need the "most exotic technology". E.g. if you select Spring MVC and Spring ORM, you also get AOP, TX, Context, Web etc.


share|improve this answer
Thanks!.. that helped a lot :) –  naiquevin Feb 11 '11 at 14:58

In Spring 3.x they remove they removed this artifact. Now you have to declare dependencies on separate modules of Spring, such as


and so on.

Also see spring 3.0.5 library jars for the list of modules and description of dependencies between them.

share|improve this answer

Your Answer


