首页  

maven下载源码和javadoc     所属分类 maven 浏览量 1128
下载源码 
mvn dependency:sources
mvn eclipse:eclipse -DdownloadSources=true

下载javadoc
mvn dependency:resolve -Dclassifier=javadoc
mvn eclipse:eclipse -DdownloadJavadocs=true


pom.xml文件里增加参数



 <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-eclipse-plugin</artifactId>
                <configuration>
                    <downloadSources>true</downloadSources>
                    <downloadJavadocs>true</downloadJavadocs>
                </configuration>
            </plugin>
        </plugins>
    </build>
    
 
    

settings.xml 配置文件 增加参数



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



上一篇     下一篇
java程序员情书

往后余生,最懂你的人,是税务

maven中的scope属性

两个程序员的故事

本次互联网寒冬的真实原因

zookeeper状态信息stat字段说明