简体   繁体   中英

Configuring IntelliJ 14 to debug an externally deployed Glassfish application

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 在此处输入图片说明

在此处输入图片说明 在此处输入图片说明

Just setting local Glassfish debug configuration is enough. There is no difference if the wars/ears are deployed via IDEA or externally.

The message you refer to "No artifacts marked for deployment" is actually a warning, not an error (although the red color of the icon is confusing). ALthough it appears, it does not stops you from running the debug configuration (just hit OK when the message appears).

Delete password in admin configuration.

like this

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM