Uploaded image for project: 'Maven Javadoc Plugin'
  1. Maven Javadoc Plugin
  2. MJAVADOC-301

DEFAULT_JAVA_API_LINKS values wrong

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.8
    • None
    • None

    Description

      Since Oracle bought Sun, they have some kind of a redirect for the old java.sun.com/j2se api urls, but on a freshly booted machine, the redirects don't work reliably, it seems, generating messages from running the maven javadocs plugin such as:

      [INFO] — maven-javadoc-plugin:2.7:javadoc (javadocs-distr) @ uimaj-distr —
      [ERROR] Error fetching link: http://java.sun.com/j2se/1.5.0/docs/api/package-list. Ignored it.

      Suggest updating the strings in /maven-javadoc-plugin-2.7/src/main/java/org/apache/maven/plugin/javadoc/AbstractJavadocMojo.java

      static

      { DEFAULT_JAVA_API_LINKS.put( "api_1.3", "http://java.sun.com/j2se/1.3/docs/api" ); DEFAULT_JAVA_API_LINKS.put( "api_1.4", "http://java.sun.com/j2se/1.4.2/docs/api/" ); DEFAULT_JAVA_API_LINKS.put( "api_1.5", "http://java.sun.com/j2se/1.5.0/docs/api/" ); DEFAULT_JAVA_API_LINKS.put( "api_1.6", "http://java.sun.com/javase/6/docs/api/" ); }

      to instead reference where Oracle has redirected this.

      Attachments

        Issue Links

          Activity

            People

              hboutemy Herve Boutemy
              schor Marshall Schor
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: