Maven build issue - Connection to repository refused

前端 未结 1 668
谎友^
谎友^ 2020-12-08 21:23

I wish to import, change, rebuild, test and push/check-in my changes to the code available in this Github repository

Currently, I do not wish to use any IDE or plug-

相关标签:
1条回答
  • 2020-12-08 22:02

    Most probably you are behind proxy.

    Try to do a telnet repo.maven.apache.org 80 and probably you will find it failed to connect.

    In your settings.xml, add corresponding proxy settings to tell Maven to go through the proxy to download the artifacts

    <settings>
        .......
        <proxies>
            <proxy>
                <active>true</active>
                <protocol>http</protocol>
                <host>your_proxy_host</host>
                <port>your_proxy_port</port>
                <!--
                <username>proxyuser</username>
                <password>somepassword</password>
                <nonProxyHosts>*.yourdomain.com|*.yourOtherDomain.com</nonProxyHosts>
                -->
            </proxy>
        </proxies>
    </settings>
    
    0 讨论(0)
提交回复
热议问题