Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to import all jars in maven repository to any project in Eclipse ide in a single shot

 
Salil Vverma
Ranch Hand
Posts: 257
Hibernate Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I m using eclipse as IDE, I want all the jars in maven repo to be a part of class path for this application. Adding these jars one by one does not look feasible due to obvious reason that repo use to have huge folder structure and traversing through each and every folder structure to add the jars in path would take a lot of time.

could you please suggest some better approach for the same.
 
Tim Holloway
Saloon Keeper
Pie
Posts: 18169
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why?

If your job is anything like mine, the Maven repository gets bigger every day and its actual contents are unpredictable. And, of course, there are multiple versions of many of these items in the repository.

Are you using a Maven plugin for Eclipse? The Sontatype plugin will automatically add all the library references in your project's POM to the Java Build classpath and even provide a handy browser element for Maven Dependencies in the Project Explorer view.
 
Peter Johnson
author
Bartender
Posts: 5852
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I second the motion on using the m2eclipse plugin from Sonatype; I don't know how I lived without it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic