我已经搜索了选项,但似乎找不到禁用这些警告的方法。诸如此类的警告:
Classpath entry org.eclipse.jdt.junit.JUNIT_CONTAINER/4 will not be exported or published. Runtime ClassNotFoundExceptions may result.
除了弄乱我的“问题” View 之外,对我的项目没有任何帮助。
最佳答案
bug 190783可能与这个问题有关。
this warning will now have two Quick Fixes:
-one that adds the "
dependency
" attribute (this is the current quick fix)-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.
作为 Mondain评论:
I found it! Right click on the warning and select quick fix, yay!
这确实是您可以使用 Quick Fix 的方式:另见 FAQ What is a Quick Fix? , Quick Fix , 和 Quick Assist
关于java - 烦恼 - 如何禁用 Eclipse 类路径条目警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3653785/