为 Maven 管理的依赖项获取附加到 Eclipse 的源 jar 文件 [英] Get source jar files attached to Eclipse for Maven-managed dependencies
问题描述
我正在使用 Maven(和 Maven Eclipse 集成)来管理我在 Eclipse 中的 Java 项目的依赖项.从 Maven 存储库中自动下载 JAR 文件的功能可以实时节省时间.遗憾的是,它不包括 API 文档和源代码.
I am using Maven (and the Maven Eclipse Integration) to manage the dependencies for my Java projects in Eclipse. The automatic download feature for JAR files from the Maven repositories is a real time saver. Unfortunately, it does not include API documentation and source code.
如何设置 Maven 以自动获取源和 javadoc 附件并在 Eclipse 中正确注册它们?
How can I set up Maven to automatically also get the source and javadoc attachments and register them properly with Eclipse?
推荐答案
我确信用于 Eclipse 的 m2eclipse Maven 插件 - 反过来 - 可以做到这一点.您可以将其配置为自动为您下载源文件和 javadoc.
I am sure m2eclipse Maven plugin for Eclipse - the other way around - can do that. You can configure it to download both the source files and javadoc automatically for you.
这是通过进入Window>来实现的.首选项 >Maven 并检查下载工件源"和下载 Artifact JavaDoc"
选项.
这篇关于为 Maven 管理的依赖项获取附加到 Eclipse 的源 jar 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!