I’ve downloaded the source for all the Maven JARs in my buildpath using Maven->Download Sources and mvn eclipse:eclipse -DdownloadSources=true, which worked! When I open up the build path I can see that the sources JARs are attached for every JAR file.
But when I run the damn thing on Tomcat 6 I keep getting “Source not found” page with “Edit Source lookup path” button. But the source is already attached in the build path. What isn’t this working?
When I manually point it to the JAR file by clicking on the “Edit Source lookup path” button it works. And when I manually point it to the folder it does not work. Why isn’t Eclipse or Tomcat picking up the attached source in the build path?
Note: I’m using apache-maven-3.0.4, apache-tomcat-6.0.16 and Eclipse Indigo Service Release 2.
Although this bug had the most votes of all bugs @Sonatype, it hasn’t been fixed.
However I have filled an enhancement request on Eclipse Bugzilla and if you agree this issue “Source not found” should be fixed, please vote for it here.
You can found three workarounds here.