Would it defend every state? Or would the big countries make concessions to avoid a military conflict? With or without a veto right.
By the way EU already had a mutual defense pact. A single military would increase effectiveness but remove member's state ability to defend themselves.
If a military attack is not negotiated away as I mentioned.