Hi,
Does anyone know how to run the netbeans debugger on a maven project? I've written a custom debug target as described in the netbeans help:
<goal name="debug.runtck" prereqs="java:compile, enhance, testrunner.set, database, copyloggingprops">
<echo>Debug JDO TCK on the IUT with configuration ${jdo.tck.configuration}</echo>
<ant:nbjpdastart name="runtck" addressproperty="jpda.address" transport="dt_socket"/>
<java fork="yes" dir="${jdo.tck.testdir}"
classname="${jdo.tck.testrunnerclass}">
<classpath refid="project.class.path"/>
<sysproperty key="ResultPrinterClass" value="${jdo.tck.resultprinterclass}"/>
<sysproperty key="verbose" value="${verbose}"/>
<sysproperty key="PMFProperties" value="${iut.runtck.properties}"/>
<sysproperty key="PMF2Properties" value="${iut.runtck.properties}"/>
<jvmarg line="${iut.runtck.sysproperties}"/>
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xnoagent"/>
<jvmarg value="-Djava.compiler=none"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
<arg line="${jdo.tck.testclasses}"/>
</java>
</goal>
But, contrary to what the help says, the jpda.address is not being set by the IDE:
debug.runtck:
[echo] Debug JDO TCK on the IUT with configuration C:\svn1\jdo\trunk\tck20/test/conf/datastoreidentity.conf
<nbjpdastart addressproperty="jpda.address" name="runtck" transport="dt_socket"></nbjpdastart> [java] Error occurred during initialization of VM
[java] ERROR: bad JDWP option
[java] Invalid JDWP options: transport=dt_socket,address=
[java] -Xrun library failed to init: jdwp
[java] [ERROR] Java Result: 1
-- Michelle
