源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

maven中下载jar包源码和javadoc的命令介绍

  • 时间:2021-12-23 04:42 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:maven中下载jar包源码和javadoc的命令介绍
[b]1:Maven命令下载源码和javadocs[/b] 当在IDE中使用Maven时如果想要看引用的jar包中类的源码和javadoc需要通过maven命令下载这些源码,然后再进行引入,通过mvn命令能够容易的达到这个目的:
[url=http://tedwise.com/2010/01/27/maven-micro-tip-get-sources-and-javadocs/]reference [/url] [b]2:通过配置文件添加[/b] 打开maven配置文件 setting.xml文件(.../.m2/settings.xml) 增加如下配置:
[u]复制代码[/u] 代码如下:
<profiles> <profile>     <id>downloadSources</id>     <properties>         <downloadSources>true</downloadSources>         <downloadJavadocs>true</downloadJavadocs>               </properties> </profile> </profiles> <activeProfiles>   <activeProfile>downloadSources</activeProfile> </activeProfiles>
[b]3:配置eclipse[/b] Window > Preferences > Maven and checking the "Download Artifact Sources" and "Download Artifact JavaDoc" options [img]http://files.jb51.net/file_images/article/201503/201532894355551.png?201522894413[/img]
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部