Hello, I can't use Eclipse's feature to debug my junit classes because
m2eclipse prevent's the source code to show when in debug mode.

I just downloaded latest Eclipse J2EE, latest maven, latest m2eclipse
(0.91), latest jdk, new workspace. I create a new project using a simple
archetype, and when I set a breakpoint and run AppTest, it's like Eclipse
shows the right source, but in less then a second after it gets replaced by
a "source not found". Also, I cannot debug my tests in all my other projects
in the same workspace as well.

When I disable the Maven Nature in the project, everything works fine.

I've seen some workarounds related to previous versions in the forum, but
they're not enough to make it work*.

It would be nice If I could enable maven in the project, get the "Maven
Dependencies" classpath, and then disable maven support to continue
development.

I wonder if/why I'm the only one with this problem.

-------------
Some workarounds I found
- The basic clean/refresh/restart eclipse
-  Run teh tests using Junit 3 and using
public static void main(String[] args) {
                junit.textui.TestRunner.run(RevisionNumberMapperTest.class);
} 
  This sort of works sometimes, but it's for junit3
- Run maven clean tests (and this would make eclipse's debugging alright
again)
-- 
View this message in context: 
http://www.nabble.com/Debug-Junit-doesn%27t-work%3A-source-not-found-problem-tp16608417s177p16608417.html
Sent from the Maven Eclipse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to