问题描述
我正在使用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正确注册? / p>
How can I set up Maven to automatically also get the source and javadoc attachments and register them properly with Eclipse?
推荐答案
我相信,m2eclipse Maven插件为Eclipse - 相反,可以做到这一点。您可以将其配置为自动下载源文件和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> Preferences> Maven并检查下载Artifact Sources和下载Artifact JavaDoc选项。
This is achieved by going into Window > Preferences > Maven and checking the "Download Artifact Sources" and "Download Artifact JavaDoc" options.
这篇关于获取连接到Eclipse的源jar文件,用于Maven管理的依赖项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!