gpt4 book ai didi

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

转载 作者:IT老高 更新时间:2023-10-28 20:39:03 26 4
gpt4 key购买 nike

是否可以通过一个项目的所有maven依赖的源码搜索一下文本?

例如:如果您导入以下示例 maven 项目:https://github.com/ajorpheus/javadoc-mem-test/tree/search-in-jars ,搜索 tempHeaders 应该会出现 AbstractClientHttpRequest.java 作为搜索结果。

有没有插件可以做到这一点?

如果 Intellij 不支持此功能,您是否知道给定 maven 项目的与 IDE 无关的方法来执行此操作?我看过像 jarexplorer 这样的工具但他们似乎没有完成这项工作。

最佳答案

我找到了方法!

使用“项目和库”自定义范围。

enter image description here

关于java - Intellij : Search through the source of maven dependencies in a project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23128952/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com