Maven Search For Dependency

Look how Netbeans adds a dependency to maven
http://mrhaki.blogspot.com/2009/07/add-maven-dependency-in-netbeans.html

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.
http://devnet.jetbrains.net/message/5217544

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?

8 comments
Comment actions Permalink

alt+insert in your pom.xml?

0
Comment actions Permalink

hm, I see what you mean now. That shouldn't be hard to implement, although, Idea groups all libraries in one tree (at least in the project view), so there should be an option to choose which module/pom you want to include dependency

0
Comment actions Permalink

Isn't the target pom implicit from the file that you're in when you invoke "generate...dependency"?
Perhaps I'm not fully understanding the request from the original poster.

0
Comment actions Permalink

The key feature is the ability to search the online repositories directly.
I don't know if this is already a feature and I have misconfigured it, but when I search for "jide" with Netbeans it downloads the right stuff, but Idea doesn't find anything at all.
It seems like Idea is only searching the project references or something.

0
Comment actions Permalink

Feature request is welcome. I will vote for it.

"opticyclic" <no_reply@jetbrains.com> сообщил(а) в новостях
следующее:17009561.734381296669879603.JavaMail.devnet@domU-12-31-39-18-36-57.compute-1.internal...

The key feature is the ability to search the online repositories directly.
I don't know if this is already a feature and I have misconfigured it, but
when I search for "jide" with Netbeans it downloads the right stuff, but
Idea doesn't find anything at all.
It seems like Idea is only searching the project references or something.

>

---
Original message URL: http://devnet.jetbrains.net/message/5285284#5285284


0
Comment actions Permalink

Hi,

You can add dependencies in the pom file with Alt+Ins(Generate->Dependency). This action will open an artifact search dialog.

Is this what you mean?

Thanks,
Anton Makeev

0
Comment actions Permalink

Updating the index fixed it.
However, its not clear that it is required.
I would have expected a notification that only my local repo was indexed or perhaps a popup to suggest this if nothing was found.

http://youtrack.jetbrains.net/issue/IDEA-65103

0

Please sign in to leave a comment.