Hi All IntelliJ IDEA experts,

I seek help (if possible please with screenshots) on how to configure IntelliJ IDEA 14 to just debug a Glassfish 3.1 EAR and WAR

App deployed externally. I mean mvn build and deploy via Glassfish 
Admin console and only debug from IntelliJ .

I go to set a local debug config in Glassfish and it insists on deployment of artifacts (which I do not want to do via IntelliJ)

Reason for not deploying via IntelliJ is that 2 WAR files depend on the
EAR to be deployed before hand and currently I think IntelliJ (as of version 14) does not let you juggle / or manually sort the deployment order and sorts deployment artifacts by name-wise in the natural sort order (A limitation)

Please help with externally configured artifacts based debug configuration help! 

Screenshots for local debug config attached herewith
[![enter image description here](https://i.stack.imgur.com/vXw2v.jpg)](https://i.stack.imgur.com/vXw2v.jpg)

[![enter image description here](https://i.stack.imgur.com/yuWHd.jpg)](https://i.stack.imgur.com/yuWHd.jpg)
[![enter image description here](https://i.stack.imgur.com/9qeZW.jpg)](https://i.stack.imgur.com/9qeZW.jpg)