wood burning stoves*
The moose likes Spring and the fly likes springframework dependancy is missing. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "springframework dependancy is missing." Watch "springframework dependancy is missing." New topic
Author

springframework dependancy is missing.

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Hi,

With maven3, I got the following error when running "mvn -e clean install":



My pom.xml file:



I think there are some spring artifacts missing, but I am not sure which ones.

Any suggestion would be very appreciated.

Thanks
Sam
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

If you look in Maven Central and http://repo1.maven.org/maven2/org/springframework/spring/ you will see that the most recent version of org.springframework:spring is 2.5.6. Perhaps there is another repository that contains 3.0.6.RELEASE. Try adding the repositories mentioned in this FAQ:
http://ebr.springsource.com/repository/app/faq


JBoss In Action
sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Thanks for the suggestion.
I am still unable to find the correct repo url for all 3.0.6 springframwork.

Thanks
Sam
sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
I have added the following configuration lines in pom.xml file:


but I am still getting the error:

sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
I removed .m2/settings.xml, now running mvn -e clean install generated a differnet error:


sam White
Ranch Hand

Joined: Feb 18, 2011
Posts: 208
Hi, I have transferred all springframwork files to ~/.m2/repository/org/ folder, the errors are still there:


Here are all spring* files:


error:

Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

I have transferred all springframwork files to ~/.m2/repository/org/ folder

How did you do this? Hopefully by running "mvn install:install-file ..." for each JAR. If you didn't, then your local repository is not well defined (missing metadata) and thus Maven will ignore the files. Showing the directories under ~/.m2/repository/org/springframework doesn't help - I really need to see the full directory tree and files (just for ~/.m2/repository/org/springframework/spring would be sufficient because that is the specific one mentioned in the error message).
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Also, I am going to cross-link your post to the Spring forum, perhaps someone there will know the URL for the Spring Maven repository. (It doesn't help that the URLs provided by the FAQ I mentioned earlier don't let you browse the repository; it makes finding anything a guessing game.)
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: springframework dependancy is missing.
 
Similar Threads
start your Java virtual machine with Spring's agent: -javaagent:org.springframework.instrument.jar
Richfaces + Spring + Maven Setup help
Could not resolve dependencies
Incorrect hibernate version or maven ignore and didn't download hibernate jar file.
Error slf4j-api, I can't exclude slf4j-api for Jboss