简体   繁体   English

在IntelliJ IDEA中从Maven添加Javadoc库的依赖关系

[英]Adding Javadoc of dependencies of a library from Maven in IntelliJ IDEA

When I want to add a library from Maven, I go to Project Settings -> Libraries -> New Project Library -> From Maven... then search for the right library version and tick the JavaDocs checkbox. 当我想从Maven添加库时,我转到Project Settings -> Libraries -> New Project Library -> From Maven...然后搜索正确的库版本并勾选JavaDocs复选框。 IntelliJ IDEA will download the library, its Javadocs and its dependencies jar files to the repository folder. IntelliJ IDEA会将库,其Javadoc及其依赖jar文件下载到存储库文件夹。

Is there any way to also download its dependencies's Javadocs? 有没有办法下载它的依赖项的Javadocs?

For this to work, you need to add the library to the POM file instead of using the project settings in IntelliJ and make sure that the following setting is checked: 为此,您需要将库添加到POM文件而不是使用IntelliJ中的项目设置,并确保选中以下设置:

Settings -> Build -> Build Tools -> Maven -> Importing -> Automatically download: Documentation 设置 - >构建 - >构建工具 - > Maven - >导入 - >自动下载:文档

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM