rgrinberg
rgrinberg

Reputation: 9878

Find out which maven depedency a class belongs to

Is there any way to find out in which a dependency a particular class is defined in IDEA?

Upvotes: 1

Views: 206

Answers (2)

Vic
Vic

Reputation: 22041

You can use usually step into the unknown file and see (at least partially) its' code. If you press Alt + F1 the project manager tab will be scrolled to the file in it's original jar.

See for example what happens if I do it for some Jetty class IJ Screenshot

Upvotes: 3

Aaron Digulla
Aaron Digulla

Reputation: 328724

Not in IDEA but on the Internet: Use fc: + fully qualified name on http://search.maven.org/

For example: fc:org.apache.commons.lang3.StringUtils

http://search.maven.org/#search%7Cga%7C1%7Cfc%3Aorg.apache.commons.lang3.StringUtils

Upvotes: 1

Related Questions