Skip to main content

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

Which eclipse version and m2eclipse version are you working with?

The exclude is added automatically by the plugin, so don't worry about it.

When you run clean project from Eclipse, do you see how many resources are copied in the Maven Console view (Console view - select Maven Console)?

Attach the Maven Console output please.

Also, do you have special profiles in your pom.xml?
Is your project a JAR packaging or WAR?



On Thu, Dec 9, 2010 at 3:09 PM, Benson Margulies <bimargulies@xxxxxxxxx> wrote:
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.
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top