Java 无法创建maven项目

Java 无法创建maven项目,java,eclipse,maven,Java,Eclipse,Maven,我想创建maven项目,但失败了。我在网络中使用代理。我可以在浏览器中访问。错误显示: 无法解析原型 archetypes:maven-archetypewebapp:1.0,来自任何 配置的存储库。无法解析工件 原型:maven原型webapp:pom:1.0无法 转移伪影 原型:maven原型webapp:pom:1.0 from/to 中央:连接超时 无法转移工件 原型:maven原型webapp:pom:1.0 from/to 中央:连接超时 我已经创建了setting.xml并放入.m

我想创建maven项目,但失败了。我在网络中使用代理。我可以在浏览器中访问。错误显示:

无法解析原型 archetypes:maven-archetypewebapp:1.0,来自任何 配置的存储库。无法解析工件 原型:maven原型webapp:pom:1.0无法 转移伪影 原型:maven原型webapp:pom:1.0 from/to 中央:连接超时 无法转移工件 原型:maven原型webapp:pom:1.0 from/to 中央:连接超时

我已经创建了setting.xml并放入.m2文件夹。setting.xml包含:

<proxies>
    <proxy>
      <id>myproxy</id>  
      <active>true</active>
      <protocol>http</protocol>
      <host>idnproxy.myproxy.asia</host>
      <port>8080</port>
      <username>c76266</username>
      <password>Password09</password>
      <nonProxyHosts>localhost|128.*.*.*|10.*.*.*|*.intranet.asia|*.group.local</nonProxyHosts>
    </proxy>
  </proxies>

此设置代理、端口、用户名和密码与我的浏览器中的设置相同,我可以运行internet。我假设配置是正确的。如何解决这个问题?谢谢。

应该是settings.xml,而不是setting.xml

或者,如果确实要使用此setting.xml,请从命令行将maven指向此xml文件

mvn -s Full_PATH_TO_setting.xml install

哦,对不起,打错了。。我的文件是settings.xml,但createmaven项目仍然失败。有解决办法吗?我也运行了你的建议命令,但失败了