Eclipse不会在调试时拾取Maven附加的源代码 [英] Eclipse not picking up Maven attached source on debug

查看:86
本文介绍了Eclipse不会在调试时拾取Maven附加的源代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用Maven->下载源和 mvn eclipse:eclipse -DdownloadSources = true ,在我的构建路径中下载了所有Maven JAR的源代码。当我打开构建路径时,我可以看到每个JAR文件附加了源JAR。



但是当我在Tomcat 6上运行这件事时,我用编辑源查找路径按钮找到源未找到页面。但源已经附加在构建路径中。这不是工作吗?



当我通过点击编辑源查找路径按钮手动将其指向JAR文件时,它可以工作。当我手动将其指向文件夹时,它不起作用。为什么Eclipse或Tomcat在构建路径中拾取附加的源代码?



注意:我使用的是apache-maven-3.0.4,apache-tomcat-6.0.16和Eclipse Indigo Service Release 2。

解决方案

虽然这个bug最多的是所有错误@Sonatype的投票,但还没有被修正。 b
$ b

但是,我已经在Eclipse Bugzilla上填写了一个增强请求,如果你同意这个问题Source not found应该被修改,请投票支持 here



您可以找到三种解决方法这里


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.

这篇关于Eclipse不会在调试时拾取Maven附加的源代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆