the sure plugin invokes another jvm to run the test, you need to configure
the debugger with surefire, not maven
<plugin>
<artifactId>maven-surefire-plugin</artifactgId>
<configuration>
<argLine>Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -Xnoagent -
Djava.compiler=NONE </argLine
</configuaration>
</plugin>
On 6/11/06, Kent Tong <[EMAIL PROTECTED]> wrote:
Hi,
I have some junit tests and they pass if they're run in Eclipse. If
they're run from the Eclipse maven2 plugin or from maven2 directly,
many of them fail. I was trying to debug it by:
set MAVEN_OPTS=-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
-Xnoagent
-Djava.compiler=NONE
but it just won't stop at the breakpoints that I set in Eclipse.
Any idea on:
1) How to debug in this situation?
2) Typically what make cause this weird behavior (failing in
maven only)?
Thanks!
--
Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified
Manager of IT Dept, CPTTM
Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag &
RedHat
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]