I build my own local GeoTools trunk and then build GeoServer trunk. Recently I noticed that, while building GeoServer, maven downloads what look like datestamped GeoTools snapshot artifacts, even though, as far as I know, I do not need them to build GeoServer trunk, which depends on GeoTools artifacts 2.6-SNAPSHOT. For example:
Downloading: http://repo.opengeo.org//org/geotools/gt-main/2.6-SNAPSHOT/gt-main-2.6-20090325.063156-27.jar
1159K downloaded
Because I am building my own GeoTools trunk artifacts (2.6-SNAPSHOT) and have installed these fresh jars in my local repository, I do not need nor did I expect to download GeoTools artifacts from the maven repositories. All my Eclipse dependencies are on non-datestamped artifacts, for example:
M2_REPO/org/geotools/gt-main/2.6-SNAPSHOT/gt-main-2.6-SNAPSHOT.jar
Could someone please explain to me:
(1) Why is maven getting GeoTools artifacts that are not a dependency of the GeoServer projects that I am building? Is it because they are installed in the 2.6-SNAPSHOT directory on the remote repo?
(2) Who is installing these artifacts, and why?
(3) Is this a correct use of the maven repository structure?
Downloading these unnecessary artifacts slows my build process, and wastes network and disk resources. I got one batch for the 24th, now one for the 25th. Where does it end?
Kind regards,
--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer, CSIRO Exploration and Mining
Australian Resources Research Centre
26 Dick Perry Ave, Kensington WA 6151, Australia