Warm tip: This article is reproduced from serverfault.com, please click

Intellij: Search through the source of maven dependencies in a project

发布于 2014-04-17 09:06:33

Is it possible to search for a bit of text through the source code of all the maven dependencies of a project?

For example: If you import the following sample maven project: https://github.com/ajorpheus/javadoc-mem-test/tree/search-in-jars, searching for tempHeaders should turn up AbstractClientHttpRequest.java as a search result.

Is there a plugin that allows one to do this?

If Intellij does not support this, would you know of an IDE-agnostic way to do this given a maven project? I have looked at tools like jarexplorer but they don't seem to do the job.

Questioner
Ashutosh Jindal
Viewed
0
Ashutosh Jindal 2014-04-17 17:17:08

I found how to do this !

Use the 'Project and Libraries' Custom Scope.

enter image description here