2

In IntelliJ I am trying to retrieve the Maven dependency that is responsible of providing a specific class (or an entire JAR).

How can I do that?

Andrea Bergonzo
  • 3,983
  • 4
  • 19
  • 31

1 Answers1

1

Since you are talking about dependencies which aren't coming from maven central you can't use the advanced search feature on central search as has been suggested elsewhere and you indicate in your comments that your nexus also doesn't support searching by class name. Another option is that IntelliJ can tell you where a class file used in your project comes from using the feature to open a class. This is ⌘O on a mac. In IntelliJ 2017.1 it looks like:

enter image description here

Ryan Dawson
  • 11,832
  • 5
  • 38
  • 61