title: maven site plugin is not working well behind a proxy
body: <p>I'm using <strong>maven</strong> (apache-maven-3.2.1) and <a href="https://maven.apache.org/plugins/maven-site-plugin/plugin-info.html" rel="nofollow"><strong>maven-site-plugin</strong></a> into my project. </p>
  
  <p>while doing <strong><code>mvn site</code> behind a proxy</strong> I got the following warnings / slowness :</p>
  
  <pre><code>[INFO] Rendering site with org.apache.maven.skins:maven-default-skin:jar:1.0 skin.
  [INFO] Generating "Dependencies" report         --- maven-project-info-reports-plugin:2.8:dependencies
  [WARNING] The repository url 'http://download.oracle.com/maven' is invalid - Repository 'oracle.releases' will be blacklisted.
  [WARNING] The repository url 'http://snapshots.repository.codehaus.org' is invalid - Repository 'codehaus-snapshots' will be black
  listed.
  [WARNING] The repository url 'http://repository.codehaus.org' is invalid - Repository 'codehaus' will be blacklisted.
  [WARNING] The repository url 'http://download.java.net/maven/glassfish' is invalid - Repository 'glassfish-repository' will be bla
  cklisted.
  [WARNING] The repository url 'http://download.java.net/maven/2/' is invalid - Repository 'maven2-repository.dev.java.net' will be
  blacklisted.
  </code></pre>
  
  <p>I got a build success but I think that blacklisting a valid repository is an issue...</p>
  
  <p>I'm <strong>behind a proxy</strong> so I defined a proxy into my maven global settings (<code>$M2_HOME/conf/settings.xml</code>). </p>
  
  <p>For some plugins like <code>release-plugin</code> (cf example under) or <code>surefire-plugin</code> I had to override arguments with proxy settings to get a success build, but I din't find an <code>arguments</code> (equivalent configuration) for maven-site-plugin.</p>
  
  <p><em>maven-release example behind a proxy</em></p>
  
  <pre><code>        &lt;plugin&gt;
              &lt;artifactId&gt;maven-release-plugin&lt;/artifactId&gt;
              &lt;version&gt;2.5.2&lt;/version&gt;
              &lt;configuration&gt;
                  &lt;arguments&gt;${proxyString}&lt;/arguments&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  (...)
      &lt;profile&gt;
          &lt;id&gt;proxy&lt;/id&gt;
          &lt;activation&gt;
              &lt;activeByDefault&gt;false&lt;/activeByDefault&gt;
          &lt;/activation&gt;
          &lt;properties&gt;
              &lt;proxyString&gt;-Djava.net.useSystemProxies=true
                  -Dhttp.proxyHost=myProxy -Dhttp.proxyPort=3128
                  -Dhttps.proxyHost=myProxy -Dhttps.proxyPort=3128&lt;/proxyString&gt;
          &lt;/properties&gt;
      &lt;/profile&gt;
  </code></pre>
  
  <p>I think that maven site use <code>maven-project-info-reports-plugin</code> but I don't know how to pass proxy arguments to this plugin (which is -according to <a href="https://maven.apache.org/plugins/maven-project-info-reports-plugin/usage.html" rel="nofollow">the doc</a>- configured internally by maven-site) ?</p>
  
  <p>I saw an <a href="http://mail-archives.apache.org/mod_mbox/maven-users/200903.mbox/%3C394ab6ec0903120929y55829ad7o50191df4e50aacc4@mail.gmail.com%3E" rel="nofollow">old discussion on apache maven mailing list</a> but that doesn't help me.</p>
  
  <p>How to set a proxy for <code>mvn site</code> ?</p>