From the Preferences in Intelli J, navigate to “Build, Execution, Deployment > Build Tools > Maven”, check the “Use plugin registry”, and click “OK”.
Then “File > Invalidate Caches / Restart” to reload Intelli J. The error will go away automatically.