Check the version of maven on your command prompt with "mvn --version".
run the "mvn deploy" on command line to see if that works.
Go to Build -> Execution, Deployment > Build tools > Maven in IntelliJ and change the version of maven to the version available on your pc instead of the default bundle provided.