What I do to debug plugins, is create a project of the plugin source code in the IDE (just like you created a project for the Openfire source code).
From your plugin project work space, you can attach a debugger to Openfire (that has the plugin running) just like you would do with Openfire (as we discussed in Debug openfire4.4.3 ).