eclipse autobuilder经常忽略资源目录
我使用 eclipse 和 maven 插件。我有一个大型多模块项目(工作区中约有 6 个模块)。我经常遇到这样的问题:运行我的程序(jetty:run)时,我的应用程序由于资源文件丢失而无法启动。查看目标文件夹,我发现它们尚未被复制。在这种情况下,只有“项目”“干净”有帮助。
知道出了什么问题或者我可以从哪里开始调试问题吗?它确实减慢了我的发展速度。
干杯,
Jan
编辑:升级到 eclipse Helios 有帮助。
I use eclipse and the maven plugin. I have a big multi-module project (~6 modules in the workspace). I often have the problem that when running my program (jetty:run) my application does not start because resource files are missing. Looking in the target folder, I noticed they haven't been copied. Only "project" "clean" helps in this case.
Any idea what is going wrong or where I could start debugging the issue? It really slows down my development.
Cheers,
Jan
EDIT: Upgrade to eclipse Helios helped.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
听起来您正在使用 m2eclipse 0.10.0。
以下是 POM 中查找资源所需配置的链接:
https://docs.sonatype.org/pages/viewpage.action?pageId= 2949459
您可能还会发现使用 maven-resources-plugin 版本 2.4.2 或 2.4.3 可能比 2.4 更好。
It sounds like you're using m2eclipse 0.10.0.
Here is a link for the configuration required in the POM for resources to be found:
https://docs.sonatype.org/pages/viewpage.action?pageId=2949459
You may also find that using maven-resources-plugin version 2.4.2 or 2.4.3 may work better than 2.4.
我有时也会经历这种行为。我的解决方法是触摸资源来触发资源更改时调用的目标 (
process-resources resources:testResources
)。这听起来像是 m2eclipse 错误。I also experience this behavior sometimes. My workaround is to touch a resource to get the Goals to invoke on resource change (
process-resources resources:testResources
) triggered. This sounds like a m2eclipse bug.