Maven Debug Jenkins Plugin in Eclipse

Attach debugger to Eclipse:

  1. Right click your Project
  2. Debug As > Debug Configurations
  3. Remote Java Application
  4. New. I name it a generic name like “Remote myapp”, you can change it to another Project by clicking Browse and selecting a Project. Or you can set up the debugger for each project if you wish.
  5. Close
  6. From the command line inside your project directory, type:
  7. mvnDebug -DJENKINS_HOME="C:\Program Files (x86)\Jenkins" -Dport=9090 hpi:run

  8. Go back to Eclipse (set your breakpoints) and press “ALT + SHIFT + D, D” to start debugging your project
  9. Once it says “Jenkins is up and fully running”, open a browser and type your Jenkins instance URL and port number, i.e. http://localhost:9090
  10. Click the link below

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s