2017-03-03 102 views
1

Maven项目无法使用Archetype在Eclipse Neon中创建,并且出现以下错误。 (屏幕截图附加)无法使用原型在Eclipse中创建Maven项目使用原型的Neon使用原型

Could not transfer artifact org.apache.maven.archetypes:maven-archetype-quickstart:pom:1.1 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org 

为maven正确配置了代理设置。另外我可以使用命令行创建maven项目而不会有任何问题。

我已经尝试了几乎所有在互联网上推荐的解决方案。但没有运气。现在这个问题正在杀死我。

enter image description here

你在这方面的帮助表示高度赞赏。

+0

代理/防火墙问题...使用内部资源库管理器? – khmarbaise

+0

我没有得到你。 – Kevin

回答

0

似乎你面临配置问题。转到settings.xml。

<?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>proxyname</id> 
       <active>true</active> 
       <protocol>http</protocol> 
       <username>username</username> 
       <password>password</password> 
       <host>127.0.0.1</host> 
       <port>80</port> 
       <nonProxyHosts>any.host</nonProxyHosts> 
      </proxy>  
      </proxies> 
     </settings> 

确保您指向默认代理并给出正确的凭据。为settings.xml的

位置参考:/repositories/buildtools/apache-maven-3.2.2-developer/conf/settings.xml

回复我,如果需要进一步了解。