Lee Breisacher wrote: > I'm trying to setup GeoTools in eclipse for (possible) development. I've > followed the instructions in the Developer's Guide re maven, svn, etc. > I'm quite familiar with svn and eclipse and java, but I'm new to GeoTools. > > The problem I'm running into is eclipse project names and dependencies. > When I import the GeoTools projects (after running mvn eclipse:eclipse), > the project names do not have a "gt-" prefix (although the <name> > elements in the .project files *do* include the gt- prefix). But the > dependencies in the other .project files use the gt- prefix, e.g. > > <project>gt-metadata</project> > > So the inter-project dependencies are not working. > The inter-project dependencies are only done once; you need to go into the root of your geotools checkout and issue: mvn eclipse:eclipse it will set up: - a dependency to M2_REPO/xxxxxx for any third party jar (you will need to have done a "mvn install -Dmaven.test.skip=true" prior to this in order to ask maven to build geotools and download all the needed dependencies for you) - and inter-project dependencies for all the projects in all the folders from the root of your geotools checkout downward. (If you issue mvn eclipse:eclipse in any specific folder you will get that *just* that project, with M2_REPO dependencies; there will be no inter-project dependencies).
I do not think anyone is concerned about the names of the projects in eclipse; just so long as they do not conflict with your other work. It is for this reason that the "gt-" prefix is added). There is a chance that a new maven eclipse plugin had been released on us; and you are the first person to try it :-) > I found a bit of discussion about this here: > > http://docs.codehaus.org/display/GEOTOOLS/Module+renaming > and here: > GEOT-995 > but I'm still confused. > This disucssion occured as we figured out this problem as a community. > I'm running eclipse 3.4.0 and I've tried it with both the released gt > 2.4.4 src.zip and directly checked out from /trunk > > What am I doing wrong? > I doubt you are doing anything wrong, in general always assume we need help making the instructions better. I am going to assume you are using maven 2.0.9 ... - for GeoTools 2.4.4 they used a different version of maven; let us not talk about it further ... if you have a chance (and need a stable geotools release) please use GeoTools 2.5.x - for GeoTools trunk we are using maven 2.0.9 We also have recently required a flag (-Dall) to include optional unsupported modules; in case you are wondering why there is more code than is showing up in eclipse. Can I confirm that your geotools checkout does build from the command line with maven? Jody ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-devel
