I’ve just recently started getting back into plugin development in Minecraft using IntelliJ, and upon creating a new project and copying all the repositories and dependencies I’d need, I get a handshake error.
[WARNING] Failed to download maven-metadata-papermc-repo.xml [https://repo.papermc.io/repository/maven-public/]
[WARNING] Failed to download maven-metadata-sonatype.xml [https://oss.sonatype.org/content/groups/public/]
[WARNING] Could not transfer metadata com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT/maven-metadata.xml from/to papermc-repo (https://repo.papermc.io/repository/maven-public/): Received fatal alert: handshake_failure
[WARNING] com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT/maven-metadata.xml failed to transfer from https://repo.papermc.io/repository/maven-public/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of papermc-repo has elapsed or updates are forced. Original error: Could not transfer metadata com.destroystokyo.paper:paper-api:1.16.5-R0.1-SNAPSHOT/maven-metadata.xml from/to papermc-repo (https://repo.papermc.io/repository/maven-public/): Received fatal alert: handshake_failure
[WARNING] Failed to download maven-metadata-sonatype.xml [https://oss.sonatype.org/content/groups/public/]
[WARNING] Failed to download maven-metadata-papermc-repo.xml [https://repo.papermc.io/repository/maven-public/]
[WARNING] Could not transfer metadata com.destroystokyo.paper:paper-parent:dev-SNAPSHOT/maven-metadata.xml from/to papermc-repo (https://repo.papermc.io/repository/maven-public/): Received fatal alert: handshake_failure
[WARNING] Failed to download maven-metadata-papermc-repo.xml [https://repo.papermc.io/repository/maven-public/]
[WARNING] Could not transfer metadata org.projectlombok:lombok/maven-metadata.xml from/to papermc-repo (https://repo.papermc.io/repository/maven-public/): Received fatal alert: handshake_failure
[WARNING] org.projectlombok:lombok/maven-metadata.xml failed to transfer from https://repo.papermc.io/repository/maven-public/ during a previous attempt. This failure was cached in the local repository and resolution will not be reattempted until the update interval of papermc-repo has elapsed or updates are forced. Original error: Could not transfer metadata org.projectlombok:lombok/maven-metadata.xml from/to papermc-repo (https://repo.papermc.io/repository/maven-public/): Received fatal alert: handshake_failure
[WARNING] Failed to download lombok-1.18.34.pom [https://repo.papermc.io/repository/maven-public/]
And at some point, I’d keep on getting a trust anchors must be non-empty error as well, but that seems to have gone away on its own…? I haven’t been able to reproduce it – I reinstalled IntelliJ and that somehow fixed it although I do not know what could be causing that error.
java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty
I’ve never had any issues with Maven failing to download repositories from Maven and it gives that error for every dependency that I’m using (Paper MC, JetBrains Annotations, Lombok), so this is a little concerning to me. Has anybody else had any issues with this? Thanks