[英]Compilation Error not displaying in Eclipse
I am using Mac Yosemite and Eclipse Luna. 我正在使用Mac Yosemite和Eclipse Luna。
I have successfully imported Maven projects into my workspace and the projects were running without any errors. 我已成功将Maven项目导入到我的工作区中,并且这些项目正在运行,没有任何错误。 The issue is Eclipse is not showing compilation error in editor or in project explorer.
问题是Eclipse在编辑器或项目资源管理器中未显示编译错误。
Default Builders is "Maven Project Builder". 默认构建器是“ Maven项目构建器”。
Right click a project in the project explorer and choose Maven
> Update project
, or press 在项目浏览器中的项目上单击鼠标右键,然后选择“
Maven
>“ Update project
,或按
Alt + F5 . Alt + F5 。 Select all the relevant projects and Ok.
选择所有相关项目,然后单击确定。 This automatically cleans and updates the workspace.
这将自动清理并更新工作区。
After this you may see errors in your project in package explorer. 之后,您可能会在包资源管理器中看到项目中的错误。 Expand src folder and remove the package that is showing the error.
展开src文件夹,然后删除显示错误的软件包。
It helped me this way. 这样对我有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.