Maven 1.x LinkCheck Plugin
  1. Maven 1.x LinkCheck Plugin
  2. MPLINKCHECK-5

linkcheck plugin uses global proxy settings. There is no way to perform check using a proxy while still having a non-proxied project

    Details

    • Type: Improvement Improvement
    • Status: Closed Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.4
    • Labels:
      None
    • Environment:
      Maven running behind a proxy but "remote-repo" is "inside", therefore no need for proxy.
    • Number of attachments :
      0

      Description

      Suppose the following setup:

      • local network behind a proxy
      • one "remote repository" running on a local machine, mirror of ibiblio
      • Maven builds get the resources from the above "remote repository", hence no need for proxy settings in the projects. Actually, setting a proxy would only slow things down.

      When running "site:generate" linkcheck kicks in, but sees no proxy and fails trying to reach outside links like "http://maven.apache.org/".

      If we set a proxy the general build process is slowed unnecessarily.
      If not, goals like "site:generate" are slooooow to run due to timeouts in linkcheck.

      AFAIK there is no (obvious/direct/simple) way to have "no proxy" when building and "some proxy" when linkchecking.

      Suggestion 1:
      allow linkcheck to use its own set of proxy settings if the "normal" ones are not found. Some property like "maven.linkcheck.proxy.host=192.168.0.1".

      Suggestion 2:
      Use automatically proxy settings from the environment (global env, not Maven's). These would be users's settings for browsing the Net anyway, so these are probably the best choice anyway.

        Activity

        Hide
        Carlos Sanchez added a comment -

        Why don't use proxy and set remote repository to the machine inside the intranet?

        Show
        Carlos Sanchez added a comment - Why don't use proxy and set remote repository to the machine inside the intranet?
        Hide
        Arnaud Heritier added a comment -

        We'll add some properties to the plugin :
        maven.linkcheck.proxy.host=$

        {maven.proxy.host}

        maven.linkcheck.proxy.port=$

        {maven.proxy.port}

        maven.linkcheck.proxy.username=$

        {maven.proxy.username}

        maven.linkcheck.proxy.password=$

        {maven.proxy.password}

        maven.linkcheck.proxy.ntlm.host=$

        {maven.proxy.ntlm.host}

        maven.linkcheck.proxy.ntlm.domain=$

        {maven.proxy.ntlm.domain}
        Show
        Arnaud Heritier added a comment - We'll add some properties to the plugin : maven.linkcheck.proxy.host=$ {maven.proxy.host} maven.linkcheck.proxy.port=$ {maven.proxy.port} maven.linkcheck.proxy.username=$ {maven.proxy.username} maven.linkcheck.proxy.password=$ {maven.proxy.password} maven.linkcheck.proxy.ntlm.host=$ {maven.proxy.ntlm.host} maven.linkcheck.proxy.ntlm.domain=$ {maven.proxy.ntlm.domain}
        Hide
        Arnaud Heritier added a comment -

        Fixed

        Show
        Arnaud Heritier added a comment - Fixed

          People

          • Assignee:
            Arnaud Heritier
            Reporter:
            Florin Vancea
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: