How to set eclipse to ignore the “Classpath Dependency Validator Message” Warning

谁说胖子不能爱 提交于 2019-11-30 13:17:22

问题


I would like it to have no warnings in my eclipse projects, but I get this one warning:

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.

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.

However, I need to set this warning in eclipse to ignore, how can I do this?


回答1:


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




回答2:


Select the warning, press Ctrl+1 (Quick Fix), chose the option "Exclude the associated raw classpath entry from ..."



来源:https://stackoverflow.com/questions/11577380/how-to-set-eclipse-to-ignore-the-classpath-dependency-validator-message-warnin

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!