Good day to all. A couple of days ago a strange error appeared in Intelij IDEA:

Software caused connection abort: recv failed

Maven stopped pulling dependencies.
Made mvn -X clean package
The entire stackTrace will not result in errors only:

Caused by: org.eclipse.aether.resolution.ArtifactResolutionException: Could not transfer artifact org.apache.maven.plugins: maven-clean-plugin: pom: 2.5 from / to central ( https://repo.maven.apache.org / maven2 ): Remote host closed connection during handshake

Caused by: org.eclipse.aether.transfer.ArtifactTransferException: Could not transfer artifact org.apache.maven.plugins: maven-clean-plugin: pom: 2.5 from / to central ( https://repo.maven.apache.org / maven2 ): Remote host closed connection during handshake

Caused by: org.apache.maven.wagon.TransferFailedException: Remote host closed connection during handshake

Caused by: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake

Caused by: java.io.EOFException: SSL peer shut down incorrectly

Windows 10 environment with all the latest updates.
Java version "1.8.0_172".
Apache Maven 3.5.3
IntellijIDEA latest version.

Thanks in advance for your answers.

  • And in a browser, you can open repo.maven.apache.org/maven2 ? - Sergey Gornostaev
  • Yes, I can without problems. - Antony20
  • show your pom and settings.xml. PS Do you happen to use Spring Cloud Contract? There was the same problem with this liby. - aleshka-batman
  • No, I do not use. dropmefiles.com/zV0M3 (in pom and settings archive) - Antony20
  • The whole problem was in the settings of Sockets Windows. In fact, Maven has nothing to do with it. - Antony20

1 answer 1

Very similar to the fact that the client and server can not agree on a secure connection protocol. Try to specify it explicitly:

  mvn -X clean package -Dhttps.protocols=TLSv1.2 

It is also possible that some third-party software, for example, antivirus, proxies your connection through itself, replacing your remote address with itself and, as a result, the connection protocol.

PS The similar problem is described on xabre .