From: Ben Caradoc-D. <Ben...@cs...> - 2010-02-08 08:52:47
|
I use two separate Eclipse workspaces. https://www.seegrid.csiro.au/twiki/bin/view/Infosrvices/GeoserverDevelopmentSetup My attempts in 2008 to make a giant GT+GS aggregate pom were unsuccessful. Conflicting and transitive dependencies caused major pain. Unless you include all modules in a single mvn eclipse:eclipse run, GT code will be resolved in the maven repo when debugging GS. This is a minor pain. Yes, this means you have to mvn install your GT module and then refresh your GS Eclipse. Yes, this could be better. Hint: "mvn -o clean install" in the module you are hacking. Use -DskipTests for even faster builds. (No skipping tests before you commit.) Kind regards, Ben. On 08/02/10 14:54, lim goh wrote: > Hi all, > > I'm sorry because this might be more of a geoserver question but I > think people working on Geotools might have done this before. > Does anyone knows how to properly use Eclipse to debug Geoserver using > your own copy of the geotools source? > > For example here's what I did: > 1. svn checkout geotools and geoserver > 2. mvn install geotools/geoserver > 3. mvn eclipse:eclipse geotools/geoserver > 4. load all the projects into eclipse and setup geoserver to run in an > mvn jetty container. > 5. Managed to hit breakpoints in gt-jdbc-postgis.snapshot-2.1.jar (or > something with that name) under .m2/repository > > But how may I get he source to point to my actual gt-jdbc-postgis > project in my workspace, and of course change behaviour as I modify > the code in the project?? > > Thank you > -- Ben Caradoc-Davies <Ben...@cs...> Software Engineer, CSIRO Earth Science and Resource Engineering Australian Resources Research Centre 26 Dick Perry Ave, Kensington WA 6151, Australia |