问题描述
我的Java项目是使用Maven构建的,并且是在Intellij Idea的帮助下编写的.我有很多开源项目依赖项,我想深入研究它们以了解它们是如何工作的.为此,我经常在Idea中使用用法搜索,即查找用法"选项,它告诉我可以在何处找到某个类的用法.也可以是在路径中查找"选项或其他一些代码导航工具.
问题是我不确定所有源均已下载.这就是为什么我的搜索可能会给出错误的结果的原因.
一个问题是:如何强制Idea和Maven下载项目的所有资源并完成所有搜索?
My Java project is build with Maven and written with the help of Intellij Idea. I have a lot of open-source project dependencies and I want to study them extensively to understand how they work. For this I often use a usage search in Idea, i.e. Find Usages option, which tells me where the usages of some class can be found. Also it can be Find In Path option, or some other code navigation tool.
The problem is that I am not sure all the sources are downloaded. Thats why my search may give wrong results.
A question is : how can I force Idea and Maven download all the sources for my project and make all my searches complete ?
In the 'Maven Projects' tab on the side of the Idea window is a toolbar button (looks like a box with a green arrow pointing down) for downloading sources and documentation.
这篇关于如何强制Idea和Maven为我的项目下载所有源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!