Edward, please ensure that you built the correct version of GeoTools for your GeoServer. For example, if you built GeoTools 9.2 from source and then built GeoServer 2.3-SNAPSHOT from the 2.3.x branch (not 2.3.2), then your GeoServer will depend on GeoTools 9-SNAPSHOT, not the one built locally (9.2). Maven will then note that you have no source for that version and not attach anything. "mvn dependency:tree" is your friend. Or you could just look in the GeoServer top-level pom for gt.version and then compare with the version set in the first <version> in the GeoTools top-level pom.
Maven will only download source attachments if you use -DdownloadSources=true for the eclipse:eclipse goal. You should not need to do this for GeoTools if you are building it from source because the project is configured to build and install source jars. This option is very useful as it will allow you to step into source from other projects outside GeoTools and GeoServer. Maven 3 also remembers from where artifacts were downloaded and is quite fragile if the download source changes. This new feature is in my view a bug: http://jira.codehaus.org/browse/MNG-5181 I do not know if this is the problem in your case, but if your Maven repository has been poisoned by mixed download sources, which mysteriously causes Maven to ignore artifacts in your local repo, you can either remove all the affected artifacts or just the _maven.repositories files: find ~/.m2/repository -name _maven.repositories -exec rm -f {} \; I always build with -nsu (no snapshot updates) to ensure I never get GeoTools snapshot downloads mixed with local snapshot builds. Kind regards, Ben. On 04/07/13 02:06, Edward Judge wrote: > Not sure if this is the correct forum but I am trying to debug some > geotools code used by geoserver. I have followed these instructions: > > _http://docs.geoserver.org/latest/en/developer/quickstart/index.html#quickstart_ > > Geoserver starts up fine and I can debug (set breakpoints and walk > through) most of the geoserver code but can't get past the Eclipse > "Source not found" error when stepping into a geotools function. I have > built the geotools code myself and I am trying to debug that. I am a > novice when it comes to Eclipse so I could be missing something very > basic. Any suggestions? > > Thanks, > > *Edward Judge* > > Software Engineer > IBM Software Group, Information Management > INZA SW Development > ------------------------------------------------------------------------ > Phone: 508-382-4166 IBM Marlborough > E-Mail: [email protected] Marlborough, MA 01752 > USA > > > ------------------------------------------------------------------------ > > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Windows: > > Build for Windows Store. > > http://p.sf.net/sfu/windows-dev2dev > > > > _______________________________________________ > Geoserver-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geoserver-users > -- Ben Caradoc-Davies <[email protected]> Software Engineer CSIRO Earth Science and Resource Engineering Australian Resources Research Centre ------------------------------------------------------------------------------ This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-dev2dev _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
