Maven - a set-up query -
given group of developers, each 1 has following requirements on respective (local)windows machines:
- through ides eclipse, sts etc., run spring, hibernate etc. projects
- quickly build, deploy , run, change if required, rebuild , redeploy(everything, preferably via ides) projects available on github
there following constraints/objectives :
- the individual developer machines have restricted or no internet access
- the developers must take required jars single location store jars required across team
- whenever required, developer must able pull updated jars central location onto local environment , continue run projects seamlessly
- within ide, build github project , run (locally)
attached image give clear idea of work environment i'm envisaging!
i have started reading maven quite overwhelmed - how should proceed?
as suggested sander verhagen in answer, should use repository proxy. nexus , artifactory famous one. here describe briefly steps need looking for:
- set nexus in machine m
- in nexus, setup proxy repository central (this should available out of box), , other repositories want developer access. may need add http proxy setting when configuring repo proxy.
- (optional, recommended) setup repository group includes public repository proxies. assuming url of proxy group
http://m/nexus/groups/public
- in developer's machine, update ~/.m2/settings.xml, set
http://m/nexus/groups/public
mirror of central. if created other internal hosted repositories in nexus, may add them in settings.xml well.
that's all. can use maven normal. dependencies fetched nexus in m.
Comments
Post a Comment