How to reference javadocs to dependencies in Maven's eclipse plugin when javadoc not attached to dependency

后端 未结 6 1743
遥遥无期
遥遥无期 2020-11-30 19:31

I use Eclipse, Maven, and Java in my development. I use Maven to download dependencies (jar files and javadoc when available) and Maven\'s eclipse plug-in to generate the .p

6条回答
  •  佛祖请我去吃肉
    2020-11-30 20:09

    From the Maven Eclipse Plugin FAQ

    The following example shows how to do this in the command-line:

    mvn eclipse:eclipse -DdownloadSources=true  -DdownloadJavadocs=true 
    

    or in your pom.xml:

    
      [...]
      
        [...]
        
          [...]
          
            org.apache.maven.plugins
            maven-eclipse-plugin
            
              true
              true
            
          
          [...]
        
        [...]
      
      [...]
    
    

提交回复
热议问题