• 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

Maven Repository

 
Ranch Hand
Posts: 91
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a maven eclipse project. I also have a maven repository sitting on .m2/repository folder. I want to add some project dependant jar files from a folder C:/external folders in my eclipse maven project. Should I copy the jars into my maven repository or just make a reference to the jar files on C:/external not in the maven repository. I just want to know whether this is the correct approach for a Maven project. Should I copy the jars of C:/external into my maven repository. Please suggest.


Regards
Thomas
 
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
The proper way to get jars into a maven repository is to have maven do it. You need to set up a POM to describe the item(s) you want deployed to the repository. This includes the version IDs, since one of maven's selling points is managing multiple versions of resources.

If you don't have the appropriate maven infrastructure, maven won't be able to locate and retrieve the jars in question.
 
reply
    Bookmark Topic Watch Topic
  • New Topic