eclipse autobuilder经常忽略资源目录

发布于 2024-09-06 14:12:39 字数 252 浏览 2 评论 0原文

我使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

泛泛之交 2024-09-13 14:12:39

听起来您正在使用 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.

赏烟花じ飞满天 2024-09-13 14:12:39

我有时也会经历这种行为。我的解决方法是触摸资源来触发资源更改时调用的目标 (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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文