Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[m2e-users] resources missing from classpath when debugging

In the last few days, I've lost the ability to run classes from
m2eclipse which depend on finding resource files from
src/main/resources in their classpath.  Unit tests that work fine from
the mvn command line fail in eclipse, and ordinary java main programs
get a null when asking the usual find resource API to return them.

src/main/resources does show as a source folder in the explorer. It
has the correct target folder of PROJ/target/classes.

The reason for the problem is that Something has added an 'exclude' of
'**' to the build path entry for src/main/resources.

I certainly didn't.


Back to the top