开发者

Project in Eclipse that builds a jar used by another project in Eclipse

I have several projects open in Eclipse. One of them is the main app, and others build jars used by that main app. How do I make it so that when I hit F3 on a method call in the main app that it takes me to the source in the other project instead of taking me to the class file in the Libraries list? I got it so that it shows me the source, but I can't actually edit it like it could if I go to the other project, and similarly when I step through in the debugger it doesn't go into the editable code.

I don't know if it开发者_运维技巧's relevant, but we're using Maven to handle the dependencies.

I know this should be simple, but I haven't found the option.


Instead of including the other projects' jars in the main app on its library path, include the projects as dependencies in the "Projects" tab inside the Project Properties dialog.


If you right-click the JAR file on your main project, you can use "Attach Source" option to use F3 to navigate to methods when needed.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜