How to set eclipse to ignore the "Classpath Dependency Validator Message" Warning

Mark picture Mark · Jul 20, 2012 · Viewed 27.5k times · Source

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?

Answer

moeTi picture moeTi · Jul 20, 2012

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