出現感嘆號確實令人頭疼,菜單 Windows——show views——problems 可以查看錯誤的地方。我的maven工程是相互引用的,出現了項目引用間 的問題,老是報errors ,其實將errors的警告改爲warnings 就可以了。
錯誤信息:
“A cycle was detected in the build path of project: XXX”
解決方法非常簡單:
Eclipse Menu -> Window -> Preferences... -> Java -> Compiler -> Building -> Building path problems -> Circular dependencies -> 將Error改成Warning