The eclipse autobuilder often ignore the resource directory

别等时光非礼了梦想. 提交于 2019-12-11 08:36:56

问题


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.


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/3111927/the-eclipse-autobuilder-often-ignore-the-resource-directory

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!