Maven / Eclipse: default build path for resources excludes everything

I am using M2E to integrate maven with eclipse. My block checks links to property files in the resources / directory. Well, all is well in the command line mvn test ( mvn test ). However, no resources were found in Eclipse.

Check the Java build path, there all resource records are marked Excluded: ** . (I believe that it should exclude only .java / .class files). After removing the exception pattern, the problem is resolved.

I'm not sure if I should remove all Excluded ** manually, or maybe I'm using M2E incorrectly.

PS Projects are imported by Existing Maven Projects .

+7
source share
1 answer

It does this on purpose to allow the maven-resource-plugin to copy resources. Perhaps you have filters. I swallowed a m2e list about it, you can file a bugzilla and join the molestation. it is really annoying.

+5
source

All Articles