title: Apache Maven Error : Could not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom: 2.5 to central
body: <p>I am new at this. I am working on apache maven. I am working behind a proxy server. Every time, I try to  build maven project. It gives me this error. I also changed proxy settings in settings.xml file. But It is not working. It keeps giving me same problem. Build Failure. I have searched for answer on net. But I could not find it. I am trying to integrate a CAS into my web applications and sites. If anybody also has suggestion for that please help me.
  Edit:-
  pom.xml file:-</p>
  
  <pre><code>  &lt;proxies&gt;
    &lt;!-- proxy
       | Specification for one proxy, to be used in connecting to the network.
       |--&gt;
      &lt;proxy&gt;
        &lt;id&gt;myproxy&lt;/id&gt;
        &lt;active&gt;true&lt;/active&gt;
        &lt;protocol&gt;http&lt;/protocol&gt;
       &lt;username&gt;username&lt;/username&gt;
        &lt;password&gt;pass&lt;/password&gt;
        &lt;host&gt;companyhost&lt;/host&gt;
        &lt;port&gt;8080&lt;/port&gt;
       &lt;!-- &lt;nonProxyHosts&gt;local.net|some.host.com&lt;/nonProxyHosts&gt;--&gt;
      &lt;/proxy&gt;
  
    &lt;/proxies&gt;
  </code></pre>
  
  <p>error:-</p>
  
  <pre><code>C:\workspace\local-cas&gt;mvn clean package
  [INFO] Scanning for projects...
  [INFO]
  [INFO] ------------------------------------------------------------------------
  [INFO] Building local-cas 1.0-SNAPSHOT
  [INFO] ------------------------------------------------------------------------
  Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/mave
  -clean-plugin/2.5/maven-clean-plugin-2.5.pom
  [INFO] ------------------------------------------------------------------------
  [INFO] BUILD FAILURE
  [INFO] ------------------------------------------------------------------------
  [INFO] Total time: 04:03 min
  [INFO] Finished at: 2014-11-20T17:03:32+05:30
  [INFO] Final Memory: 8M/245M
  [INFO] ------------------------------------------------------------------------
  [ERROR] Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its de
  endencies could not be resolved: Failed to read artifact descriptor for org.apa
  he.maven.plugins:maven-clean-plugin:jar:2.5: Could not transfer artifact org.ap
  che.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.mave
  .apache.org/maven2): Connect to host.com:8080 failed: Conection timed out: connect -&gt; [Help 1]
  [ERROR]
  [ERROR] To see the full stack trace of the errors, re-run Maven with the -e swi
  ch.
  [ERROR] Re-run Maven using the -X switch to enable full debug logging.
  [ERROR]
  [ERROR] For more information about the errors and possible solutions, please re
  d the following articles:
  [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolut
  onException
  C:\workspace\local-cas&gt;
  </code></pre>
  
  <hr>
  
  <p>I think that I am getting problem because everything is restricted due to company proxy server.</p>