• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

springframework dependancy is missing.

 
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have added the following configuration lines in pom.xml file:


but I am still getting the error:

 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I removed .m2/settings.xml, now running mvn -e clean install generated a differnet error:


 
sam White
Ranch Hand
Posts: 229
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.)
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic