wood burning stoves*
The moose likes IDEs, Version Control and other tools and the fly likes how to import all jars in maven repository to any project in Eclipse  ide in a single shot 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 » Engineering » IDEs, Version Control and other tools
Bookmark "how to import all jars in maven repository to any project in Eclipse  ide in a single shot" Watch "how to import all jars in maven repository to any project in Eclipse  ide in a single shot" New topic
Author

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

Salil Vverma
Ranch Hand

Joined: Sep 06, 2009
Posts: 253

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.


Regards
Salil Verma
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15952
    
  19

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.


Customer surveys are for companies who didn't pay proper attention to begin with.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

I second the motion on using the m2eclipse plugin from Sonatype; I don't know how I lived without it.


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to import all jars in maven repository to any project in Eclipse ide in a single shot
 
Similar Threads
Eclipse EJB doesn't update manifest file?
Fighting the org.apache.jasper.JasperException: Module 'null' not found error
Enable dependency management is not working for me not even getting the maven folder created(eclipse
Need a Maven/m2eclipse mentor, PLEASE!
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoade