maven 下載源碼eclipse的配置


1、在eclipse使用maven 下載源碼包需要更改 D:\apache-maven-3.2.1-bin\apache-maven-3.2.1\conf 目錄下

的 settings.xml 文件, 在文件中加入:

 

<profile>
        <id>downloadSources</id>
        <properties>
            <downloadSources>true</downloadSources>
            <downloadJavadocs>true</downloadJavadocs>           
        </properties>
    </profile>
  <activeProfiles>
    <activeProfile>downloadSources</activeProfile> 
  </activeProfiles>

兩行配置

2、配置eclipse:

 

Window > Preferences > Maven and checking the "Download Artifact Sources" and "Download Artifact JavaDoc" 選擇。

3、pom.xml 文件 右擊 RUN AS eclipse:clean eclipse:eclipse -DdownloadSources=true 命令即可。


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM