Hi, I create a new project in a new workspace and add library reference to a jar called p.jar created from my project p and another jar log4j. Both files are from .m2/repository. Now I can open the source files for log4j but I cannot open source files from my project's jar p.jar. I check p's source jar file, it is really ok in its content and it is created through maven. Now, I am sure it is not a problem from eclipse:eclipse. How weird is this problem!But now,
Regards, Rice On Tue, Oct 6, 2009 at 6:53 AM, Barrie Treloar <[email protected]> wrote: > On Sat, May 23, 2009 at 7:54 PM, Rice Yeh <[email protected]> wrote: > > Hi, > > I created my Eclipse Java project through "mvn > > -DdownloadSources=true eclipse:clean eclipse:eclipse". > > After project creation, I checked that in the Referenced Libraries in > > the in my Java Eclipse project have > > the source attachments correctly defined for the referenced libraries. > > However, I get the "Source not found" problem when accessing classes in > > these libraries. All these libraries and their source jar files are from > > other projects and are created by Maven. I even change the locations of > > the source attachments to their source directories in their project. But > > it still does not work. For other jar files from > > http://repo1.maven.apache/maven2, I do not have such problem. Any clue? > > This sounds like an Eclipse problem, not an eclipse:eclipse problem. > > Can you create a second project and *manually* setup the build path, > including source jars, and use the files in your ~/.m2 directory. > If you can manually create a replica of your broken project, and it is > still broken, then it is an Eclipse problem. > If your replicate project works, then it is an eclipse:eclipse problem. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
