TeamCity remote debug your Maven build Print E-mail
User Rating: / 0
PoorBest 
Tuesday, 26 August 2008 20:17

maven-logo-2.gif

How to remote debug test cases

Change the Team city project configuration by adding a -Dmaven.surefire.debug to Maven runner in Additional "Maven command line parameters"

maven.remote.debug.testcases

Now when test cases will be executed by maven surefire plugin, the build will wait for a remote debugging application to pick it up on port 5005 and this for EVERY MODULES
meaning:  If you have 5 Maven modules (= java projects) with test cases maven surefire will request 5 times you to connect with remote debugging to your build server.

Create a Remote Java Application launcher you'll also share in one eclipse project:

maven.remote.debug.launcher

 

Don't forget to remove the -D variable or your daily build may wait for a remote debug connection! or create a special build configuration of your project targeted for debugging purpose.

Remote debugging Maven plugin

put into "JVM command line parameters:" these settings:

-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006

debug.maven.in.teamcity

Create a Remote Java Application launcher you'll also share in one eclipse project that will connect to the port 5006.

Tags See All Tags Add New Tag...

Please Enter New Tags Separated By Comma's
  Or Close

debugging  junit  maven  teamcity 
Powered By Joomla Tags

Comments
Add New Search RSS
Write comment
Name:
Email:
 
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 
:):grin;)8):p:roll:eek:upset:zzz:sigh:?:cry
:(:x
Please input the anti-spam code that you can read in the image.

3.20 Copyright (C) 2007 Alain Georgette / Copyright (C) 2006 Frantisek Hliva. All rights reserved."

 


Another articles:

Powered By relatedArticle

Content View Hits : 3453464

Enter Amount: