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