• 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

Shared Maven Local Repository?

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

We are a group of developers who use Maven for a J2EE project.
How can I create and configure a shared local repository on my computer so that other developers can access and use its libraries? (Otherwise, each developer must have a separate .m2 directory and download the same libraries from the central repository).

Thank you very much.
 
Saloon Keeper
Posts: 27752
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
Actually, you are better off dedicating an independent server computer to do this, since it can be a real nuisance to asymmetrically configure a desktop machine to act as a server. A popular approach is to use Sonatype's Nexus server software, which can cache both universal artefacts and local project artefacts.

You actually don't want to eliminate the ".m2" cache, since its primary purpose is to speed up compiles with a side benefit of not having to keep separate copies of the artefacts in each individual project. But by using a central server, you can reduce Internet overhead and at the same time publish internal shared objects.
 
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'll second Tim's comments. Having a Nexus repository in house is the best way to go. Makes sharing binary artifacts with other people in your company simple. I would also recommend setting up Jenkins to manage your builds.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic