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

javadoc link : nonproxyhosts not used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.6
    • 2.6.1
    • None
    • None
    • maven-2.0.10
      jdk 1.6_014
    • Patch

    Description

      • Prerequisite :
        --------------------
      • web access via http proxy
      • javadoc-plugin configuration with <detectLinks>true</detectLinks>
      • $MVN_HOME/conf/settings.xml with configuration above ( internal-host is host to access the internal javadoc web sites )
        <proxies>
        <proxy>
        <active>true</active>
        <protocol>http</protocol>
        <host>myproxyhost</host>
        <port>myproxyport</port>
        <nonProxyHosts>internal-host</nonProxyHosts>
        </proxy>
        </proxies>

      Launch the mvn site-deploy command.
      If you have a dependency with an internal javadoc web site, the plugin tried to link this javadoc with the http proxy and logged:
      "Error fetching link: http://internal-host/..../apidocs/package-list. Ignored it."

      This is a bug because this javadoc isn't accessible via http proxy.

      So I attached 2 patches :

      • the first one (link_nonproxy_2.0.10.patch) is compatible (and tested) with mvn 2.0.9 and 2.0.10 but included a method directly copied from ProxyUtils.java (wagon-provider-api-1.0-beta-6.jar)
      • the second (link_nonproxy_2.2.0.patch) used 2 classes from wagon-provider-api-1.0-beta-6.jar dependency so it requires mvn 2.2

      Attachments

        1. link_nonproxy_2.2.0.patch
          5 kB
          Maxime Gréau
        2. link_nonproxy_2.0.10.patch
          4 kB
          Maxime Gréau

        Issue Links

          Activity

            People

              siveton Siveton Vincent
              mgreau Maxime Gréau
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: