Maven dependencies are not getting downloaded, proxy issues? -
current winhttp proxy settings: direct access (no proxy server) in windows machine. , in settings.xml . but, jars not getting downloaded , getting below error.
[error] plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or 1 of dependencies not resolved: failed read artifact descriptor fo
r org.apache.maven.plugins:maven-clean-plugin:jar:2.5: not transfer artifact org.apache.maven.plugins:maven-clean-plugin:pom:2.5 from/to central (https://repo.maven.apache.org/maven2): connect repo.maven.apache.org:443 [repo.maven.apache.org/151.101.24.215] failed: connection timed out: con nect -> [help 1]
as per maven documentation have add settings.xml
setting in mentioned here guide proxies .
<settings> <proxies> <proxy> <id>example-proxy</id> <active>true</active> <protocol>http</protocol> <host>proxy.example.com</host> <port>8080</port> <username>proxyuser</username> <password>somepassword</password> <nonproxyhosts>www.google.com|*.example.com</nonproxyhosts> </proxy> </proxies> . . </settings>
another way download dependencies follows
mvn clean install -dproxyset=true -dproxyhost=myproxy.com -dproxyport=yourport
the second 1 works fine me. hope atleast 1 of above solution work hoping network doesn't have blocked servers maven repo.
Comments
Post a Comment