java - Unable to attach to a running spring integration test using debugger -


i running spring integration test using maven. trying run debug port enabled can attach intellij idea.

the following command line used work in past. used allow surefire bootup initialize, , wait attach port 8000 before continuing test:

-dmaven.surefire.debug="-xdebug -xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 -xnoagent -djava.compiler=none" -dtestintegration test

however giving me following exception:

[error] no plugin found prefix 'runjdwp' in current project , in plugin groups [com.zillow, org.apache.maven.plugins, org.codehaus.mojo] available repositories [local (/home/ferozed/.m2/repository-p4), nexus (http://repo.zillow.local/content/groups/public)] -> [help 1] org.apache.maven.plugin.prefix.nopluginfoundforprefixexception: no plugin found prefix 'runjdwp' in current project , in plugin groups [com.zillow, org.apache.maven.plugins, org.codehaus.mojo] available repositories [local (/home/ferozed/.m2/repository-p4), nexus (http://repo.zillow.local/content/groups/public)] @ org.apache.maven.plugin.prefix.internal.defaultpluginprefixresolver.resolve(defaultpluginprefixresolver.java:93) @ org.apache.maven.lifecycle.internal.mojodescriptorcreator.findpluginforprefix(mojodescriptorcreator.java:260) @ org.apache.maven.lifecycle.internal.mojodescriptorcreator.getmojodescriptor(mojodescriptorcreator.java:220) @ org.apache.maven.lifecycle.internal.defaultlifecycletasksegmentcalculator.calculatetasksegments(defaultlifecycletasksegmentcalculator.java:106) @ org.apache.maven.lifecycle.internal.defaultlifecycletasksegmentcalculator.calculatetasksegments(defaultlifecycletasksegmentcalculator.java:86) @ org.apache.maven.lifecycle.internal.lifecyclestarter.execute(lifecyclestarter.java:98) @ org.apache.maven.defaultmaven.doexecute(defaultmaven.java:317) @ org.apache.maven.defaultmaven.execute(defaultmaven.java:152)

any ideas how can work?

i remember dealing before. debug options using may have been deprecated in version of java. java 5 , under used -xrunjdwp. believe java 7 , (not sure 6, used both?) use agentlib:jdwp. recommend checking out answer on so.

https://stackoverflow.com/a/173447/50558


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -