Message-ID: <1436789908.19906.1406770706861.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_19905_1720806751.1406770706861" ------=_Part_19905_1720806751.1406770706861 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
Go to the Run/External Tools/External Tool= s ..." menu item on the "Run" menu bar. Select "Program= " and click the "New" button. On the "Main" tab, f= ill in the "Location:" as the full path to your "mvn" e= xecutable. For the "Working Directory:" select the workspace that= matches your webapp. For "Arguments:" add
Move to the "Environment" tab and click the "New" bu=
tton to add a new variable named
MAVEN_OPTS with the value:
-Xdebug -Xnoagent -Djava.compiler=3DNONE -Xrunjdwp:transport=3Ddt_=
If you supply suspend=3Dn instead of suspend=3Dy you can start immediate= ly without running the debugger and launch the debugger at anytime you real= ly wish to debug.=20
Then, pull up the "Run/Debug/Debug ..." menu item and select &=
quot;Remote Java Application" and click the "New" button. Fi=
ll in the dialog by selecting your webapp project for the "Project:&qu=
ot; field, and ensure you are using the same port number as you specified i=
address=3D property above.
Now all you need to do is to Run/External Tools and select the name of t= he maven tool setup you created in step 1 to start the plugin and then Run/= Debug and select the name of the debug setup you setup in step2.=20
From instructions provided by Rolf Strijdhorst on the Maven mailing= list=20
In order to stop the jetty server the "Allow termination of remote = VM" should be checked in debug dialog in Step 2. When you have the jet= ty server running and the debugger connected you can switch to the debug pe= rspective. In the debug view, right click on the Java HotSpot(TM) Client VM= [localhost:4000] and chose terminate. This will stop the debugger and= the jetty server.