Kent Tong
2006-06-12 02:04:23 UTC
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!
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
Kent Tong, Msc, MCSE, SCJP, CCSA, Delphi Certified
Manager of IT Dept, CPTTM
Authorized training for Borland, Cisco, Microsoft, Oracle, RedFlag & RedHat