Had the same issue. In my case, setting "Delegate IDE build/run actions to Maven" solved it.
Seetings - Build, Execution, Deployment - Build Tools - Maven - Runner