The joys of maven :). Trust me, I feel your pain.

That said, something seems a miss. If you build geotools locally and 
then build geoserver there should be no external downloads... there 
should only be a check of the timestamps, in which it should find your 
local copy newer and prevent the download.

I do this more or less daily to try avoid the downloads like you are 
doing, and it always work. I actually build offline (-o) just to make 
sure i don't get any downloads. So something must be off.

I am curious, when does the geotools main dependency get dragged in and 
downloaded? At which module?

Some additional comments inline.

Ben Caradoc-Davies wrote:
> 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?
We have a nightly script that does this so that people don't have to 
check out and build geotools to build geoserver. One thing you can do to 
avoid downloading is just comment out the opengeo repository from the 
root geoserver pom of your checkout. Or use settings.xml to override it.
> (3) Is this a correct use of the maven repository structure?
Yup, afaik. WE just run mvn deploy:deploy and it handles creating the 
proper 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,
> 


-- 
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to