How do I keep IntelliJ from deploying an artifact twice? Follow
Answered
I have an EAR project (build using Maven) that I deploy in IntelliJ (usually using debug but sometime Run) to a WebLogic server. When I hit debug, the EAR deploys fine BUT it takes a very long time. It takes a long time anyway, but I see the same log messages scrolling past twice. I'm not sure but I suspect that the artifact is actually already deployed and when WebLogic starts, it deploys as part of the start up and THEN IntelliJ re-deploys it.
Is there any way that I can fix this?
Thanks!
Please sign in to leave a comment.
Configure the server so that it doesn't deploy anything on start. Start the server outside of IntelliJ IDEA to verify that nothing is deployed.
There is something deployed. It's the same EAR that IntelliJ deployed the last time I started it (that's the only way that anything has been deployed there). Is it possible that IntelliJ doesn't undeploy when the application shuts down?