Annoyance - 如何禁用Eclipse类路径条目警告 [英] Annoyance - How to disable Eclipse classpath entry warnings

查看:354
本文介绍了Annoyance - 如何禁用Eclipse类路径条目警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我搜索了这些选项,但似乎找不到一种禁用这些警告的方法。警告如:

I've searched the options but I can't seem to find a way to disable these warnings. Warnings such as this:


Classpath entry org.eclipse.jdt.junit.JUNIT_CONTAINER/4 will not be exported or published. Runtime ClassNotFoundExceptions may result.   

除了让我的问题视图混乱以外,我的项目根本没有任何目的。

Simply serve no purpose to me on my project other than to clutter my "Problems" view.

推荐答案

bug 190783 可能与此问题有关。


此警告现在将有两个快速修复:

this warning will now have two Quick Fixes:

- 一个添加依赖关系属性(这是当前的快速修复)

-one that adds the "dependency" attribute (this is the current quick fix)

- 添加非依赖性属性;添加此属性将会将cp条目作为潜在的发布/导出依赖关系排除在考虑之外。如果用户改变主意,他们可以通过JDT构建路径UI删除此属性。

-one that adds the "nondependency" attribute; the addition of this attribute will explicitly exclude the cp entry from consideration as a potential publish/export dependency. If the user changes their mind, they can remove this attribute via the JDT build path UI.

As Mondain 评论:


我发现了!右键单击警告,然后选择快速修复,yay!

I found it! Right click on the warning and select quick fix, yay!

确实如此,您可以使用快速修复:另请参见常见问题什么是快速修复?快速修复快速辅助

That is indeed how you can use Quick Fix: See also FAQ What is a Quick Fix?, Quick Fix, and Quick Assist

这篇关于Annoyance - 如何禁用Eclipse类路径条目警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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