开发者

The eclipse autobuilder often ignore the resource directory

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.


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.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜