2017-03-03 74 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

回覆我,如果需要進一步瞭解。