Wow! Thanks for that prompt response! What a joy! OK, I'm poking around in C:\Documents and Settings\siegfried\.m2\org\springframework\spring\2.0.6.
I notice there are quite a few different versions and 2.0.6 is the latest. Can I assume my project is using the latest? What command do I have to give eclipse or maven to check for newer versions of spring? Anyway, I expanded c:\\Documents and Settings\\siegfried\\.m2\\org\\springframework\\spring\\2.0.6\\spring-2.0.6. jar and while I see springframework/jdbc/object/MappingSqlQuery.class I don't see any java source files. Do I have to edit my pom.xml to make it include the source? Is there a flag or is it just another dependency I can add with the eclipse maven IDE? Thanks, Siegfried -----Original Message----- From: Guillaume Lederrey [mailto:[EMAIL PROTECTED] Sent: Friday, December 21, 2007 11:21 AM To: Maven Users List Subject: Re: How to single step with debugger thru java spring-framework source code with Eclipse and maven? Maven should have downloaded the sources in your maven repository. So you could point eclipse to the jars there. On 21/12/2007, siegfried <[EMAIL PROTECTED]> wrote: > > > I'm having trouble telling eclipse where the source code is for spring for a > java project. > > > > I have used maven to download spring for me. I want to use the eclipse java > debugger to single thu source for > org.springframework.jdbc.object.MappingSqlQuery. I > > high light the class name and press F3 in eclipse. Now eclipse cannot find > the source code. But there is a button to press that brings up a dialog box > that allows me to specify a source code directory. How do I tell which > version of spring > > that maven downloaded on behalf of eclipse? Below is my pom.xml. > > > > So as I was saying: now I see the eclipse dialog entitled "Class File > Editor" with a button to attach the source code for > > spring 2.5 that I have manually unpacked. Woops, the eclipse debugger is > working and single stepping thru the spring source. Hurray! > > > > Oh wait! There is a problem: I must have the wrong version of the source > code because I'm > > single stepping thru comments so the source must not match the class files. > > How do I fix that? > > > > How to I make maven download and use the latest version of spring (which I > think is 2.5)? > > > > Thanks, > > Siegfried > > > > > > <?xml version="1.0" encoding="UTF-8"?> > > <project> > > <modelVersion>4.0.0</modelVersion> > > <groupId>com.springinaction</groupId> > > <artifactId>sia</artifactId> > > <version>2.0</version> > > <packaging>pom</packaging> > > <name>Spring in Action 2E, Examples</name> > > <url>http://www.springframework.org/osgi</url> > > > > <properties> > > <spring.version>2.0.6</spring.version> > > </properties> > > > > <dependencies> > > <dependency> > > <groupId>org.springframework</groupId> > > <artifactId>spring</artifactId> > > <version>${spring.version}</version> > > <scope>compile</scope> > > </dependency> > > <dependency> > > <groupId>log4j</groupId> > > <artifactId>log4j</artifactId> > > <version>1.2.13</version> > > <scope>compile</scope> > > </dependency> > > <dependency> > > <groupId>junit</groupId> > > <artifactId>junit</artifactId> > > <version>3.8.1</version> > > <scope>test</scope> > > </dependency> > > <dependency> > > <groupId>junit-addons</groupId> > > <artifactId>junit-addons</artifactId> > > <version>1.4</version> > > <scope>test</scope> > > </dependency> > > </dependencies> > > > > <modules> > > <module>Chapter01</module> > > <module>Chapter02</module> > > <module>Chapter03</module> > > <module>Chapter04</module> > > <module>Chapter09</module> > > <module>Chapter16</module> > > <module>RoadRantz</module> > > </modules> > > </project> > > > > -- Jabber : [EMAIL PROTECTED] Skype : Guillaume.Lederrey Projects : * http://rwanda.wordpress.com/ * http://rwandatech.wordpress.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
