Hi,
I want to run 'mvn test' and have maven open a jdwp listener so that I
can debug a plugin unit test. I thought I found the answer:
export MAVEN_OPTS=-Xdebug
-Xrunjdwp:transport=dt_socket,address=9009,server=y,suspend=y
I then ran 'mvn test' and connected to port 9009 with Netbeans 5.5.1.
it should be enough to open ant-run-plugin project sources in the IDE,
place the breakpoints in the test and execute the Debug file action
on the test file.
With the approach you have taken, it's possible to debug maven
internals, however the test is probably executed in yet another VM
which is
Hi,
the surefire-plugin defaults to fork a new jvm for running the tests.
You either have to specify the debug options in the argLine/ parameter
of the plugin configuration or disable the forking.
-Tim
Paul Sterk schrieb:
Hi,
I want to run 'mvn test' and have maven open a jdwp listener so
-core. This is can be applied to any maven
subproject that a maven developer may want to edit and run/debug.
Please feel free to incorporate this into your tutorial if it is
appropriate.
First level: running and debugging maven under eclipse: setting up a run
config. The principal here
On 2/16/07, John J. Franey [EMAIL PROTECTED] wrote:
I've discovered this technique to debug maven 2.0.4 under eclipse 3.2.
Please add it to your tutorial if it is appropriate. Part of your tutorial
is addressing how to debug a user project's unit tests as they are run via
surefire. I'm not
developer may want to edit and run/debug.
Please feel free to incorporate this into your tutorial if it is
appropriate.
First level: running and debugging maven under eclipse: setting up a run
config. The principal here is to merely incorporate the important elements
of the mvn script into an eclipse
breakpoint and you can step through
your code (Mavens too if you have attachec the source)
Hermod
-Original Message-
From: Franz Allan Valencia See [mailto:[EMAIL PROTECTED]
Sent: Friday, February 16, 2007 3:13 AM
To: Maven Developers List
Subject: Re: [vote-result] debugging maven
Developers List'
Subject: debugging maven with eclipse
Can anyone point me to instructions on how to use eclipse to debug
maven? I'm having a problem that no one, so far, has commented on -
namely that when I do a reactor build of my project (top-level with
sub-projects), I get the error (when doing
Good day to you, Eric,
I havve just created (or rather, continued) this short tutorial on debugging
maven with eclipse, [1]
However, I am a windows user, so my answer is based on windows. I am not
sure about the exact steps in linux but more or less, the concept of running
in debug mode
I
didn't miss anything. -- Eric
-Original Message-
From: Franz Allan Valencia See [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 12, 2006 11:40 PM
To: Maven Developers List
Subject: Re: debugging maven with eclipse
Good day to you, Eric,
I havve just created (or rather, continued
Can anyone point me to instructions on how to use eclipse to debug
maven? I'm having a problem that no one, so far, has commented on -
namely that when I do a reactor build of my project (top-level with
sub-projects), I get the error (when doing mvn install):
[ERROR] BUILD ERROR
[INFO]
From: Swenson, Eric
Sent: Thursday, October 12, 2006 9:18 PM
To: 'Maven Developers List'
Subject: debugging maven with eclipse
Can anyone point me to instructions on how to use eclipse to debug
maven? I'm having a problem that no one, so far, has commented on -
namely that when I do a reactor
: Thursday, October 12, 2006 10:42 PM
To: Swenson, Eric; Maven Developers List
Subject: RE: debugging maven with eclipse
I've managed to create an eclipse project by running mvn
eclipse:eclipse in the maven-2.0.4 source tree. And after defining the
M2_REPO classpath variable, I was able to get
I created a mvnd script and there is an issue for it.
After that it's just a matter of creating a remote debugger in eclipse.
With kind regards,
Geoffrey De Smet
Jochen Kuhnle wrote:
Hi,
is there a guide/howto for this? Or even better, does anybody have a
working .launch file?
Regards,
Geoffrey De Smet wrote:
I created a mvnd script and there is an issue for it.
After that it's just a matter of creating a remote debugger in eclipse.
Would you mind sharing the issue link with us?
--
Reinhard Pötz Independent Consultant, Trainer (IT)-Coach
{Software Engineering,
Have you found this threads in the archives:
http://www.mail-archive.com/users@maven.apache.org/msg31345.html
http://www.mail-archive.com/users@maven.apache.org/msg27239.html
Hope this helps
-Tim
Jochen Kuhnle schrieb:
Hi,
is there a guide/howto for this? Or even better, does anybody have a
someone like to put it in JIRA?
Done :)
http://jira.codehaus.org/browse/MNG-2105
- Brett
Brian E. Fox wrote:
+1!
-Original Message-
From: Vincent Siveton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 22, 2006 7:49 AM
To: Maven Developers List
Subject: Re: Debugging maven
10:41 PM
Subject: Re: Debugging maven with breakpoints feed-back: --jdwp + docs
I've thought about this in the past, but have always opted to go for
setting MAVEN_OPTS (which I have in a separate little script).
I'd be fine with adding this argument, but parsing the command line
arguments
I just used my first debug breakpoint in maven 2 to fix the
jasperreports plugin:
export MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
mvn phase-on-my-project
Still, this is a bit unhandy and it took me quite a while to find
Geoffrey,
I like it! I prefer more --jdpa rather than --jpwd (Think about
geronimo or tomcat)
What do others think?
Vincent
2006/2/22, Geoffrey De Smet [EMAIL PROTECTED]:
I just used my first debug breakpoint in maven 2 to fix the
jasperreports plugin:
export MAVEN_OPTS=-Xdebug -Xnoagent
+1!
-Original Message-
From: Vincent Siveton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 22, 2006 7:49 AM
To: Maven Developers List
Subject: Re: Debugging maven with breakpoints feed-back: --jdwp + docs
Geoffrey,
I like it! I prefer more --jdpa rather than --jpwd (Think about
it in JIRA?
- Brett
Brian E. Fox wrote:
+1!
-Original Message-
From: Vincent Siveton [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 22, 2006 7:49 AM
To: Maven Developers List
Subject: Re: Debugging maven with breakpoints feed-back: --jdwp + docs
Geoffrey,
I like it! I prefer
You beat me to the question!
-Original Message-
From: Christian Mouttet [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 26, 2004 12:20 PM
To: [EMAIL PROTECTED]
Subject: Debugging Maven
I'm downloading the source from CVS and want to run Maven in an Eclipse
debugging session. How can I
I have a spare batch file called maven-debug.bat that has this line in it:
@Set MAVEN_OPTS=-Xdebug -Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
I then use Run - Debug - Remote Java Application to connect to the
running Maven.
HTH
On Thu, 26 Aug
Hello developers,
are there any recommendations how to debug Maven best? Currently I checked out maven,
maven-plugins/genapp and jakarta-commons/jelly because I try to look into some strange
behaviour of the genapp plugin. For maven and jelly I generated with an already
installed Maven my
25 matches
Mail list logo