maven 下载 源码和javadoc命令

打开maven配置文件 setting.xml文件(.../.m2/settings.xml) 增加如下配置:

  1. <profiles>  
  2. <profile>  
  3.     <id>downloadSources</id>  
  4.     <properties>  
  5.         <downloadSources>true</downloadSources>  
  6.         <downloadJavadocs>true</downloadJavadocs>             
  7.     </properties>  
  8. </profile>  
  9. </profiles>  
  10.   
  11. <activeProfiles>  
  12.   <activeProfile>downloadSources</activeProfile>  
  13. </activeProfiles>  
  14. 3:配置eclipse

    Window > Preferences > Maven and checking the "Download Artifact Sources" and "Download Artifact JavaDoc" options
  15. maven 下载 源码和javadoc命令_第1张图片

然后项目执行eclipse:eclipse

 

转载:http://blog.csdn.net/topwqp/article/details/8902863

你可能感兴趣的:(maven 下载 源码和javadoc命令)