在IntelliJ中仅下载一个Maven依赖项的doc [英] Download doc for only one Maven dependency in IntelliJ

查看:817
本文介绍了在IntelliJ中仅下载一个Maven依赖项的doc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



➠有没有办法轻松下载单个库的源代码和/或文档,而不是全部?



有没有办法浏览什么依赖项目前有源和/或文档下载?

解决方案

1)下载单个文档和来源:



从maven工具窗口中,展开依赖项,然后选择所需的依赖项,然后右键单击它并选择您的选项。尽管IJ显示在IDE左下角的菜单项描述为下载xxx以获取所选项目的AL DEPENDENCIES ,但似乎只下载了所选库的详细信息。也许它只是一个重复使用的描述或菜单?!





PS 如果我没有误会,有一次,也可以从



...而那些没有的,用红色着色:








3)下载反编译的类源:




In IntelliJ IDEA 2017.2, the Maven Projects panel offers a menu for downloading source code and/or documentation for all the dependencies. Discussed in this other Question. Nice to have, but sometimes overkill. I want the doc for only one dependency.

➠ Is there a way to easily download source and/or documentation for individual libraries rather than all?

And is there a way to browse what dependencies currently have source and/or documentation downloaded?

解决方案

1) Downloading individual documentation and sources:

From the maven tool window, expand the dependencies, and select the desired one, then right click it and chose your option. Although the menu item description which IJ displays in the lower left corner of the IDE reads Downloads xxx for AL DEPENDENCIES for selected projects, it seems to download the details just for the selected libraries. Maybe it's just a reused description or menu?!

P.S. If I'm not mistaking, at one time, it was also possible to download missing docs from the docs popup window (default on win CTRL + Q), but I can no longer see it... I'll come back to this if I manage to find it.


2) Figuring out what libraries have downloaded docs a/o sources:

Go to File -> Project structure (default on Win is CTRL + ALT + SHIFT + S) -> Libraries. Alternatively from the project tool window select a dependency and press F4 (or Right click -> Open library settings).

As you and browse through the list, you'll see that those that already have the documentation a/o sources have a regular coloured font...

... while those that don't, are coloured in red:


3) Download decompiled class sources:

这篇关于在IntelliJ中仅下载一个Maven依赖项的doc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆