Maven 配置源码下载和镜像源修改
发布时间
阅读量:
阅读量
网络上关于此配置的信息较为丰富,此处仅作为个人配置的在线存档用途,因此内容相对简洁。
1. Maven 配置下载源码 和 JavaDoc
在软件开发过程中,开发者常常需要查阅一些不熟悉的类的源代码,甚至相关的 DOC 文档。为此,可以在 maven 的配置文件(setting.xml)中添加相应设置,从而在 IDE 工具中实现对目标类源码的自动下载。
<activeProfiles>
<activeProfile>downloadSources</activeProfile>
</activeProfiles>
<profiles>
<profile>
<id>downloadSources</id>
<properties>
<downloadSources>true</downloadSources>
<downloadJavadocs>true</downloadJavadocs>
</properties>
</profile>
</profiles>
全部评论 (0)
还没有任何评论哟~
