问题描述
今天使用eclipse时遇到一个问题,maven项目工程名有红色的叉叉,但是项目里没有任何的编译错误。
解决过程
1、寻找错误提示
在eclipse主界面,依次点击Window - Show Views - Problems,打开Problems视图就可以看到提示了。错误原因是The project was not built due to "Could not read file: E:\GSMS\sqldb\gsms_Log.LDF.". Fix the problem, then try refreshing this project and building it since it may be inconsistent.
2、解决办法
在文件资源管理器中,删除已编译了的所有classes,刷新工程,再clean一下项目就可以了