Ciao Andrea and everyone, 

Thank you for your quick resons! 

What could be the solution for the subsequent error (after running mvn
install -Dmaven.test.skip=true)?

[ERROR] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Compilation failure
C:\workspaces\wtp154\geoserver\gt\modules\library\render\src\main\java\org\ge
oto
ols\legend\Glyph.java:[19,45] package com.sun.media.jai.codec.PNGEncodeParam
doe
s not exist

Kind Regards,
Erik


-----Original Message-----
From: Andrea Aime [mailto:[EMAIL PROTECTED] 
Sent: 03 September 2007 17:12
To: VanIngen, Erik (ESTG)
Cc: geotools-devel@lists.sourceforge.net
Subject: Re: [Geotools-devel] How can I debug easy Geotools withing Eclipse?


VanIngen, Erik (ESTG) ha scritto:
> Hi all,
> 
> How can I debug easy Geotools withing Eclipse?
> 
> I try to setup geoserver with geotools in order to be able to debug 
> both because I want to add a datastore.
> 
> For Geotools I am really running into a mess. There are thousands of 
> projects, plugins, modules and Pom.xml's. I tried to download the 
> sources seperately but this link is not working anymore.

Heh... you really have to use maven or you'll get crazy in the process. Grab
the Geoserver sources, run mvn eclipse:eclipse in the geoserver 
directory.

Then do the same with GeoTools, and then load the following into your
GeoServer workspace (if you are running trunk, at least):

gt2-api
gt2-data
gt2-epsg-extension
gt2-epsg-hsql
gt2-epsg-wkt
gt2-jdbc
gt2-main
gt2-metadata
gt2-postgis
gt2-postgis-versioned
gt2-referencing
gt2-render
gt2-sample-data
gt2-shapefile
gt2-shapefile-renderer
gt2-wfs

Now, the trouble is, you'll have them into the workspace, but they still
won't depend on each other, the GeoServer projects will still depend on the
gt2 jars, so you have to debug, modify, go to the command line, "mvn clean
install" the module you modified, select all geoserver projects and refresh
(or even better, group them into a working group and refresh the working
group).

In order to avoid this dance you'll have to hand modify all
of the geoserver projects to refer to the gt2 projects directly, and I
promise that will be painful.

That's why I usually develop gt2 modules and debug them with unit tests as
much as I can before sticking them into GeoServer, at least I don't have to
do the above dance for unit tests...

It would be nice if maven had an option to attach external projects instead
of jar, but I'm not aware of such an option unfortunately.

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to