I build an artifact (ear) with maven and deploy it to a local WebSphere Application Server 8 with Intellij IDEA 15, so I configured "before launch" action "mvn clean package".
Intellij starts WAS and deplopyment goes well, but when I try to do a redeploy, maven begins to build the artifact but installation it to WAS goes in a parallel and fails, so when maven finishes there is no proper insalled applicaion and I have to run "deploy" in Intellij manually by clicking a green arrow using a mouse to get it run.
How can I tell Intellij wait for "before launch" tasks to be finished before it will do the redeploy?
Finally I wrote a wsadmin script to redeploy the app and assigned the intellij idea shortcut to run it.