using intellij to create a deployable war