I have a project in IntellijIDEA which was created with Maven. I then specified a set of dependencies and external repositories in the Pom.xml file.
The project builds
For me the problem seems to be a conflict with the maven helper plugin (https://plugins.jetbrains.com/plugin/7179?pr=idea).
I disable it, and it works again :)
For me File>>Invalidate Cache/Restart>>Invalidate and Restart worked in IntelliJ
For my case I should have checked the work offline
Go to File>Settings >Build, Execution, Deployment >Build tools>Maven Then check Work Offline
The problem was caused for me by selecting the project directory to be Imported when first starting IntelliJ rather than the pom.xml
file for the project.
Closing the problem project and then following the Import process again but choosing the pom.xml
resulted in a fully working project in the IDE.
Just delete your project's .idea folder and re-import your project in IntelliJ.
I was running into similar issues. For me it ended up being that I was importing the project incorrectly. I had been doing
import project
<navigate to existing project and click top level directory>
follow the wizard
What solved my maven problems was to do
import project
<navigate to existing project and click the pom.xml
follow the wizard