Eclipse 自动刷新资源并排除构建目录
Eclipse Helios:40+项目工作集,使用maven(mvn-eclipse插件)生成eclipse项目文件。
“资源与文件系统不同步:...”在执行文本搜索等操作后出现。
经过一番谷歌搜索后发现 Prefs >工作区>自动刷新被广泛报道为故障,对我来说也有同样的症状。源文件是受源代码控制的,因此它们具有锁定属性,很好奇这是否会发挥作用。
第二部分是关于我的构建目录; eclipse 知道 proj_root/target 是构建目录,但我想排除该文件夹中的资源同步。
我基本上不想看到该对话框,并且不想采取措施来补救它(即手动刷新)。
Eclipse Helios: 40+ project working set, using maven (mvn-eclipse plugin) to generate eclipse project files.
'Resource is out of sync with the file system: ...' Appears after doing, among other things, a text search.
After a bit of googling found Prefs > Workspace > Refresh Automatically which is widely reported to be malfunctional, and has the same symptom for me. The source files are source controlled, so therefore have lock attributes on them, was curious if this may come into play with this.
Second part is regarding my build directory; eclipse knows proj_root/target is the build directory, but I would like to exclude resource sync'ing in that folder.
I basically never want to see that dialog, and don't want to have to take action to remedy it (ie manually refreshing).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 m2eclipse 中遇到了同样的问题。
将目标文件夹标记为派生资源对我有用(右键单击 -> 属性 -> 资源 -> 派生)。
I had the same problem with m2eclipse.
Marking target folder as Derived resource worked for me (right-click -> Properties -> Resource -> Derived).