Linking to javadoc.io using Javadoc -link option

前端 未结 5 1338
野的像风
野的像风 2021-02-07 15:29

I am trying to link into some Javadocs hosted at javadoc.io (specifically, PowerMock\'s Javadocs) using the @link option. I have tried to add the URL to PowerMock\'

5条回答
  •  北荒
    北荒 (楼主)
    2021-02-07 16:02

    It's strange: I could see in the browser e.g. http://static.javadoc.io/org.pegdown/pegdown/1.6.0/package-list but when I add http://static.javadoc.io/org.pegdown/pegdown/1.6.0 as javadoc's link option it says

    Error fetching URL: http://static.javadoc.io/org.pegdown/pegdown/1.6.0/package-list

    I use next workaround:

    1. With maven-dependency-plugin unapack the javadoc of desired dependency.
    2. Link it with linkoffline option.

      
          org.apache.maven.plugins
          maven-dependency-plugin
          2.8
          
              
                  unpack-javadoc
                  package
                  
                      unpack
                  
                  
                      
                          
                              org.pegdown
                              pegdown
                              javadoc
                              ${pegdownVersion}
                              false
                              ${project.build.directory}/pegdown-javadoc
                          
                      
                  
              
          
      
      
          org.apache.maven.plugins
          maven-javadoc-plugin
          
              
                  http://www.slf4j.org/apidocs/
              
              
                  
                      http://static.javadoc.io/org.pegdown/pegdown/${pegdownVersion}
                      ${project.build.directory}/pegdown-javadoc
                  
              
          
      
      

提交回复
热议问题