首页 > 代码库 > maven下载源码和java docs
maven下载源码和java docs
方法一:
mvn dependency:sourcesmvn dependency:resolve -Dclassifier=javadoc
The first command will attempt to download source code for each of the dependencies in your pom file.
The second command will attempt to download the Javadocs.
方法二:
Open your settings.xml file (~/.m2/settings.xml
). Add a section with the properties added. Then make sure the activeProfiles includes the new profile.
<profiles> <profile> <id>downloadSources</id> <properties> <downloadSources>true</downloadSources> <downloadJavadocs>true</downloadJavadocs> </properties> </profile></profiles><activeProfiles> <activeProfile>downloadSources</activeProfile></activeProfiles>
maven下载源码和java docs
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。