• 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
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

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: 28069
198
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.
 
I am going down to the lab. Do NOT let anyone in. Not even this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic