This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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: 18002
47
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