Community
Participate
Working Groups
My tests fail when the .classpath contains excluding="**" so I have to remove it again and again... Please add a preferences option to disable adding 'excluding="**"' to .classpath.
please provide complete standalone example project and steps to reproduce the problem. m2e is expected to copy contents of resources and test resources folders to their respective output folders, so tests should have all resources available to them.
What I see is that resources just aren't copied. On second thought, it makes sense to have Maven copy them (so the resource filtering can take place) but somehow it *sometimes* fails. I have a huge project where it sometimes fails, I'm not sure whether I can strip that down. My experience is that once in a while, the resources just don't show up in the target/*classes/ folder. No amount of cleaning and updating the config will make m2e do its job. The only reliable solution that I've found is to remove 'excluding="**"' when I see it has been added again. But maybe it's a problem with the POM. I have a src/site folder. To enable filtering resources, I've added this to the POM: <resources> <resource> <directory>src/main/resources</directory> <filtering>true</filtering> </resource> <resource> <directory>src/site</directory> <filtering>true</filtering> </resource> </resources> If I omit these lines, then no resources are copied when I run Maven 3.0.3 from the command line! Maybe that's related. What are the inheritance rules for the resources element? Where is the default defined? How does Maven merge these elements if they exist in several parent POMs?
Can you attach your eclipse configuration details here (about_eclipse->installation_details->configuration)?
Created attachment 200892 [details] My configuration
This bug still happens with 1.1: Sometimes, Eclipse simply doesn't copy resources. My guess is that the delta builder sometimes doesn't invoke "mvn copy-resources" but I can't come up with a stable test case. I'm now upgrading to 1.2 and I'll keep an eye on it.
Is there a reason why m2e adds excluding="**"?
(In reply to comment #6) > Is there a reason why m2e adds excluding="**"? m2e uses maven-resources-plugin to process maven resources. Source folders are created for presentation purposes only, i.e. make them stand out in package explorer.
*** This bug has been marked as a duplicate of bug 356568 ***
Moved to https://github.com/eclipse-m2e/m2e-core/issues/