如何设置 Eclipse 以忽略“类路径依赖验证器消息”警告
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/11577380/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to set eclipse to ignore the "Classpath Dependency Validator Message" Warning
提问by Mark
I would like it to have no warnings in my eclipse projects, but I get this one warning:
我希望它在我的 eclipse 项目中没有警告,但我收到了这个警告:
Classpath entry org.eclipse.jdt.USER_LIBRARY/Liferay 6.1 GA Plugin API will not be exported or published. Runtime ClassNotFoundExceptions may result.
from warning type Classpath Dependency Validator Message
.
从警告类型Classpath Dependency Validator Message
。
I understand what eclipse is trying to say to me, but that is wrong, the library exists at the server and it is not right to export this with my projects.
我明白 eclipse 想对我说什么,但那是错误的,该库存在于服务器上,将其与我的项目一起导出是不对的。
However, I need to set this warning in eclipse to ignore, how can I do this?
但是,我需要在 eclipse 中设置这个警告来忽略,我该怎么做?
回答by moeTi
Remove it here: Preferences -> Validation -> Classpath Dependency Validator
在这里删除它:首选项 -> 验证 -> 类路径依赖验证器
Also check if your specific project has its own validation settings overwritting the global ones. Project -> Properties -> Validation
还要检查您的特定项目是否有自己的验证设置覆盖全局设置。项目 -> 属性 -> 验证
回答by Aaron Digulla
Select the warning, press Ctrl+1 (Quick Fix), chose the option "Exclude the associated raw classpath entry from ..."
选择警告,按 Ctrl+1(快速修复),选择选项“Exclude the associated raw classpath entry from ...”