-
RSS Links
Categories
- /bike
- /blog
- /categoryless
- /coffee
- /dev/random
- /food
- /freenetworks
- /friends
- /funny
- /geek
- /GirTheCadillac
- /Lebowski
- /Life
- /LifeWithDog
- /me
- /metrix
- /music
- /National Wireless Summit 2006
- /phonecamera
- /photo
- /potpourri
- /seadrunks
- /seattle
- /seattlewireless
- /shmoocon
- /softball
- /StupidShellTricks
- /sysadmin
- /travel
- /unix
- /work
- cons
- pyramid
Archives
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- December 2008
- December 2007
- August 2007
- July 2007
- May 2007
- January 2007
- December 2006
- November 2006
- October 2006
- September 2006
- August 2006
- June 2006
- April 2006
- March 2006
- February 2006
- January 2006
- December 2005
- November 2005
- October 2005
- September 2005
- August 2005
- July 2005
- June 2005
- May 2005
- March 2005
- February 2005
- January 2005
- December 2004
- November 2004
- October 2004
- September 2004
- August 2004
- July 2004
- June 2004
- February 2004
- January 2004
- December 2003
- November 2003
- August 2003
Maven tweaks continued…
In a previous post I mentioned using the settings.xml file to force maven to use a local repository. In my case this is Jfrog’s Artifactory.
This was accomplished using the “mirror” element in the settings.xml file (example). While most of our artifacts are downloaded from the “central” repository. Some of them have dependencies that are not part of “central”. This resulted in the build reaching out to other 3rd party sites to download artifacts. This is undesirable for us because we want to have control over all artifacts, and in addition this can also slow down the build or even break it when those sites go down. Which is how we discovered it in the first place.
I banged around on google for a while looking for mailing list posts or examples to force mirroring of all repos to no avail. So on my lunch break today I decided to stop by the book store and pick up the Oreilly Maven Book. A couple of minutes poking around and I found an example that setup a mirror using a wildcard.