java - Maven behind a proxy -
following situation:
we have quite big projects trying mavenize. hence have installed our own nexus repo manager. works far face situation every dev must come in his/her proxy username , password settings.xml
artifacts outside (i.e. internet).
unfortunately devs need alter proxy passwords every , , need apapt settings.xml again.
the connection our nexus not routed on proxy. there possibility configure dns approach:
client asked (company intern, non-proxy) nexus artifact a.jar. it not located in local repos, nexus retrieves artifact maven central , stores in it's local cache. client gets artifact a.jar if came straight company nexus. everybody happy :)
il give more accurate reply you'll reply question, anyway, here best way accomplish want.
nexus, artifactory , other repo manager (like smw pointed out), able deed proxy you. receive requests, own database searching atifacts, , access net if didn't found anything.
you must configure nexus telling repo have mirror, , optionnaly give proxy credential :
here guide configure nexus mirror other repo : http://www.sonatype.com/books/nexus-book/reference/confignx-sect-manage-repo.html and configure nexus utilize proxy accessing internet: http://www.sonatype.com/books/nexus-book/reference/configxn-sect-customizing-server.html java maven proxy
No comments:
Post a Comment