Number of Maven plugins can spawn additional Java processes. For example surefire plugin allow to specify the following property:
upon execution, user will be presented with the message like:
Where XXX is the port number to connect remote debugger to. We can create a hyperlink that would allow to start remote debugger in one simple click or even automatically.