Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Critical
-
Resolution: Unresolved
-
Affects Version/s: 0.9.7
-
Fix Version/s: None
-
Component/s: Project Configuration
-
Labels:None
-
Environment:Windows / Ganymede
Description
Update Project Configuration generates the following entry in the .classpath of eclipse:
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources"/>
But it schould be:
<classpathentry excluding="**/*.java" kind="src" output="target/test-classes" path="src/test/resources"/>
So Eclipse Unit Test that run in eclipse (not "mvn test" !) cannot access resources, because these ar enot in the classpath. The same problem is with
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources"/>
Fred, please see the following FAQ entry about resource excludes. http://docs.codehaus.org/display/M2ECLIPSE/Project+FAQ#ProjectFAQ-excludes
You may have to run "Maven / Update project configuration" and in some cases also recreate your JUnit launch configuration if you have updated from the older versions of m2eclipse.
If you have specific issues with resource excludes, please attach sample test project and provide steps required to reproduce your issue.