2016-11-09 72 views
1

我想通過代理使用maven我讀了許多答案,說在.m2文件夾的settings.xml文件中寫入一些配置,但它不工作這是我的配置: 我酒莊的名字是:cgi.net.intra我的電腦是一個LDAP如何通過代理使用maven

<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> 
     <active>true</active> 
     <protocol>http</protocol> 
     <host>ncproxy3</host> 
     <port>8080</port> 
     <username>gh40615</username> 
     <password>mypasseword</password> 
     <nonProxyHosts>www.google.com|*.somewhere.com</nonProxyHosts> 
    </proxy> 
    </proxies> 
</settings> 

有人可以幫助我的一員? MERCI D'AVANCE

回答

2
  1. 檢查您的代理確實使用HTTP,HTTPS不
  2. 檢查您的代理確實使用端口8080
  3. 使用FQH爲 - ncproxy3.cgi.net.intra
  4. 確保您的settings.xml位於$ {user.home} /。m2/

祝您好運。

+0

我會試試,謝謝 –