Apologies if this is a duplicate or just a mistake in my IvyDE settings.
I have a number of dependent projects in an Eclipse workspace, linked using IvyDE's "Resolve dependencies in workspace". I am also using a number of 3rd party jars.
For simplicity of explanation, let's say I have two projects, A and B.
Project A depends on project B and on 3rdparty.jar.
Project B's class folders are correctly added to project A's classpath, so I can run project A using an Eclipse run configuration with no problems. However, project's B's source folders are not added to the run configuration's source lookup path. Strangely, project B's class folders are added to the path, but of course there are no source files in there.
This causes problems when debugging project A. If I am stepping through some Project A code and try to step into a Project B method, Eclipse does not how where to find Project B's source, so it gives me an error. As a workaround I have to manually add all of project B's source folders to the lookup path.
Note that the source for 3rdparty.jar is correctly retrieved from the repo and steppable using the debugger. (I notice that it is not added to the source lookup path, so I guess the debugger can find it as a source attachment to the jar). Similarly, if I close project B then projectB-src.jar is correctly retrieved and debuggable.