• 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

Adding dependency in pom

 
Ranch Hand
Posts: 103
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I am having a project that I have created in Eclipse.This project conatins hibernate,drools.So I have added all the necessary jars in the project build path.Now I have created a maven quickstart archetype where inside main folder I have kept my java source and inside test directory I have kept my JUnit test sources.
Now in pom.xml I have added the dependencies by searching dependeny for the jars I have added in my build path in eclipse.But maven is unable to find repositories.I can manually install the jars using installer:install but it is too hectic because there are lots of jars.Is there any easy way to specify dependency for all the jars used in my project ?

Regards,
Arka
 
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
Have you installed the m2eclipse plugin? If so, you can create a Maven Project. Then the POM editor will let you search the repositories for the dependencies you are interested in. Some dependencies might not be in Maven Central, so you will have to locate the repository they belong to and ad that repository to your settings.xml file (or you can add it to your pom.xml, or you can installed a repository manager such as Nexus and have it manage all of that for you. Personally, I would go with Nexus, that removes a lot of headaches.)

For Hibernate, and other JBoss-related artifacts, see this: http://community.jboss.org/wiki/MavenRepository
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic