Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can IntelliJ display a searchable maven dependency like Eclipse?

I'm starting to use IntelliJ IDEA 13 Ultimate Edition and was wonder if it had a searchable tabular view of maven dependencies for a project like Eclipse does. For example, in Eclipse I can check my project's maven dependencies by going to its pom and then clicking on the "Dependencies Hierarchy" tab. From there, I can search for the existence of specific dependencies and have the ability to view the POMs of said dependencies.

All I've found so far in IntelliJ is the diagram view of dependencies, which can get really cluttered when you have a lot of dependencies and doesn't really allow me to view POMs or search.

Any ideas?

like image 672
user623941 Avatar asked Feb 24 '14 23:02

user623941


People also ask

How do I view Maven dependencies in IntelliJ?

In the POM, right-click anywhere in the editor to open the context menu and select Maven | Show Dependencies. Alternatively, press Ctrl+Alt+Shift+U or Ctrl+Alt+U . In the diagram window, IntelliJ IDEA displays the sub project and all its dependencies including the transitive ones.

How do I enable dependency analyzer in IntelliJ?

From the main menu, select Code | Analyze Code | Dependencies. Alternatively, if you want to analyze a specific item, right-click it in the Project tool window and select Analyze | Analyze Dependencies. In the dialog that opens, specify the scope of files that you want to analyze.

Why Maven dependencies are not showing in IntelliJ?

If the dependencies weren't imported correctly (IntelliJ IDEA highlights them), try to perform the following actions: You can check your local maven repository in the Maven | Repositories settings and try to update it. You can check the jar file of the local . m2 repository to see if it was downloaded correctly.

How do I check dependencies in IntelliJ?

Analyze dependenciesFrom the main menu, select File | Project Structure Ctrl+Alt+Shift+S and click Modules | Dependencies. Right-click the necessary dependency and select Analyze This Dependency.


1 Answers

Try Maven Helper plugin: once you install it, every POM file gets a tab for "Dependency Analyzer" which also includes a search bar.

If you need something more, report an issue. But it should be easy to implement it yourself and send a pull request.

like image 91
Meo Avatar answered Oct 13 '22 05:10

Meo