Maven Artifact Search is always empty

intellij-ideamaven

When using Alt-Insert to insert a dependency into the POM, the Artifact Search is always completely blank regardless of what I search for.

I tried to add repo1 to Settings->Maven->Repository Services, it says "no repository found." I find that hard to believe.

I've also tried to "update" my local repository but that results in an error.

FYI I'm using Community Edition Snapshot.

Thanks!

Best Answer

If you have a brand new IntelliJ install and have never updated your Maven Repository, notice that there is a little "Update" button to the right that becomes clickable when you click on each repository.

Preferences > Build, Execution, Deployment > Build Tools > Maven > Repositories

The important one is the https://repo.maven.apache.org/maven2/ remote repository, make sure you update it.