Look how Netbeans adds a dependency to maven
You search for what you want and it automatically gets added to the pom.
I hate to say it, but this is much better than in Idea, unless there is an option i am missing somewhere.
Something was mentioned a couple of years ago, but it seems like it wasn't picked up.
The repo search plugin mentioned in that thread doesn't really achieve the same thing.
Is this the sort of thing that could be included in Ideas core maven support?