java - Maven Proxy error -


hi not able create maven project in machine.below configurations

eclipse version: mars.1 release (4.5.1) maven version: m2e, maven integration eclipse, 1.6.2 

i behind corporate proxy. have tried configure settings file inside .m2 directory , not working. below settings file

<?xml version="1.0" encoding="utf-8"?> <settings xmlns="http://maven.apache.org/settings/1.0.0"     xmlns:xsi="http://www.w3.org/2001/xmlschema-instance"     xsi:schemalocation="http://maven.apache.org/settings/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">  <proxies>  <proxy>  <id>myproxy</id>  <active>true</active>  <protocol>http</protocol>  <host>xx.xx.xx.xx</host>  <port>8080</port>  <nonproxyhosts></nonproxyhosts>  <username>username</username>  <password>password</password>  </proxy>  </proxies>  </settings> 

i saw lot of answers in stackoverflow regarding issue, tried , nothing works. doubt, there '@' character in password, cause issues ? need provide username domain\username or username ? , how provide both http , https in file ?

stack trace error

could not resolve archetype org.apache.maven.archetypes:maven-archetype-webapp:1.0 of configured repositories. not resolve artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 failure transfer org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 https://repo.maven.apache.org/maven2 cached in local repository, resolution not reattempted until update interval of central has elapsed or updates forced. original error: not transfer artifact org.apache.maven.archetypes:maven-archetype-webapp:pom:1.0 from/to central (https://repo.maven.apache.org/maven2): connect timed out 

in experience.

  1. the '@" character not key problem. since pwd include character.
  2. domain not necessary add
  3. actually maybe can try way:

config proxy information in ide (eg:eclipse) instead of config in settgins.xml means remove configuration in maven setting file


Comments