14

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?

kaya3
  • 47,440
  • 4
  • 68
  • 97
Mark
  • 17,887
  • 13
  • 66
  • 93

2 Answers2

23

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

moeTi
  • 3,884
  • 24
  • 37
0

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

Aaron Digulla
  • 321,842
  • 108
  • 597
  • 820
  • My all gradle tasks became disabled after doing this!!!! Now you have to tell me how to undo this? – User Jul 27 '18 at 09:17
  • @Khan I don't see how that could happen by following my instructions. Try to create a new workspace, import the project there and it should work again. If that doesn't work, restore the file `.classpath` from a backup or version control. – Aaron Digulla Aug 23 '18 at 13:04