Category Archives: Eclipse

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