Saturday, 6 February 2016

How to resolve connection timeout issue while building through maven

If you see any such error while downloading any of the jars as following
Failed to read artifact descriptor for org.springframework.security:spring-security-core:jar:4.2.4.RELEASE: Could not transfer artifact org.springframework.security:spring-security-core:pom:4.2.4.RELEASE from/to mirror  (https://<maven repo path>): connection timed out to .......

Try to check the whether you have the appropriate nexus repo path as like below in pom.xml

  <distributionManagement>
         <repository>
             <id>depl</id>
            <url>http://<nexus path></url>
         </repository>
        <snapshotRepository>
             <id>depl-snapshot</id>
             <url>http://<nexus snapshot path></url>
        </snapshotRepository>
</distributionManagement> 

No comments:

Post a Comment