• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 257
Hibernate Oracle Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Saloon Keeper
Posts: 27764
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
I'm still in control here. LOOK at this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic