Search code examples
eclipsemaven-2resourcesbuildm2eclipse

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.


Solution

  • 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.