<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Pascal Alberty's Blog &#187; maven</title>
	<atom:link href="http://pascal.albertyorban.be/permalink/category/maven/feed" rel="self" type="application/rss+xml" />
	<link>http://pascal.albertyorban.be</link>
	<description>Fun, Games, Windows Tips, Java,  Star Wars, Music and Co</description>
	<lastBuildDate>Tue, 17 Nov 2009 11:43:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Debugging with the Maven Jetty Plugin in Eclipse</title>
		<link>http://pascal.albertyorban.be/permalink/java/debugging-with-the-maven-jetty-plugin-in-eclipse</link>
		<comments>http://pascal.albertyorban.be/permalink/java/debugging-with-the-maven-jetty-plugin-in-eclipse#comments</comments>
		<pubDate>Tue, 15 May 2007 19:54:43 +0000</pubDate>
		<dc:creator>Pascal Alberty</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[maven]]></category>
		<category><![CDATA[programming]]></category>

		<guid isPermaLink="false">http://pascal.albertyorban.be/permalink/java/debugging-with-the-maven-jetty-plugin-in-eclipse</guid>
		<description><![CDATA[You use Maven and Jetty to test your Web Application and want to debug it under Eclipse, you can proceed like this: Configuring Step 1: Configure JVM debug mode In mvn.bat file, remove REM from the following line: @REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 Supplying suspend=n instead of suspend=y allows you to start jetty without [...]]]></description>
			<content:encoded><![CDATA[<p>You use Maven and Jetty to test your Web Application and want to debug it under Eclipse, you can proceed like this:</p>
<p><strong>Configuring</strong><br />
<em>Step 1: Configure JVM debug mode</em><br />
In mvn.bat file, remove REM from the following line:<br />
<code>@REM set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000</code></p>
<p>Supplying suspend=n instead of suspend=y allows you to start jetty without debugger. Then, you can launch it when you want.</p>
<p><em>Step 1 bis</em><br />
In the maven bin directory, you can create a command file named jetty.bat with the following lines<br />
<code><br />
@set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000<br />
mvn clean jetty:run<br />
</code></p>
<p><em>Step 2: Configure Remote Application in Eclipse</em><br />
Run/Debug&#8230;/Remote Application, right click, new and OK</p>
<p><strong>Lauching</strong><br />
<em>Step 1: Launch jetty in debug mode</em><br />
By launching the following command in a command window:<br />
<code>mvn clean jetty:run</code></p>
<p><em>Step 1bis:</em><br />
By launching the following command in a command window:<br />
<code>jetty</code></p>
<p><em>Step 2: Launch debugger in Eclipse</em><br />
Launch Remote Application in debug mode</p>
<p>That&#8217;s all !</p>
]]></content:encoded>
			<wfw:commentRss>http://pascal.albertyorban.be/permalink/java/debugging-with-the-maven-jetty-plugin-in-eclipse/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
