POM/Maven
mixxit opened this issue ยท 11 comments
Describe the question
Hey! For some reason i'm having certificate errors from Travis.com when using repo (only started happening in the last few days)
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 5.074 s
[INFO] Finished at: 2020-02-21T17:22:23Z
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project solinia3-core: Could not resolve dependencies for project com.solinia:solinia3-core:jar:1.14.4-R0.1: Failed to collect dependencies at com.comphenix.protocol:ProtocolLib:jar:4.4.0: Failed to read artifact descriptor for com.comphenix.protocol:ProtocolLib:jar:4.4.0: Could not transfer artifact com.comphenix.protocol:ProtocolLib:pom:4.4.0 from/to dmulloy2-repo (https://repo.dmulloy2.net/nexus/repository/public/): Transfer failed for https://repo.dmulloy2.net/nexus/repository/public/com/comphenix/protocol/ProtocolLib/4.4.0/ProtocolLib-4.4.0.pom: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
API method(s) used
None
Expected behavior
Maven is able to pull from mulloy2
Code
N/a
EDIT: Looks like it doesn't work for me neither.
EDIT2: The server appears to have an incomplete certificate chain. It doesn't provide the Let's encrypt certificate. It should be in the following order:
Website (sent by server) -> Let's Encrypt (should be sent by server) -> DST (root cert - installed on system only reference required)
Getting the exact same error here on Gradle.
> Task :TopSecretSoftware:compileJava FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':TopSecretSoftware:compileJava'.
> Could not resolve all files for configuration ':TopSecretSoftware:compileClasspath'.
> Could not resolve com.comphenix.protocol:ProtocolLib:4.4.0.
Required by:
project :TopSecretSoftware
> Could not resolve com.comphenix.protocol:ProtocolLib:4.4.0.
> Could not get resource 'http://repo.dmulloy2.net/nexus/repository/public/com/comphenix/protocol/ProtocolLib/4.4.0/ProtocolLib-4.4.0.pom'.
> Could not GET 'https://repo.dmulloy2.net/nexus/repository/public/com/comphenix/protocol/ProtocolLib/4.4.0/ProtocolLib-4.4.0.pom'.
> PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 9s
2 actionable tasks: 1 executed, 1 up-to-date
My Gradle binary is running OpenJDK 11.0.4.
------------------------------------------------------------
Gradle 6.2
------------------------------------------------------------
Build time: 2020-02-17 08:32:01 UTC
Revision: 61d3320259a1a0d31519bf208eb13741679a742f
Kotlin: 1.3.61
Groovy: 2.5.8
Ant: Apache Ant(TM) version 1.10.7 compiled on September 1 2019
JVM: 11.0.4 (Debian 11.0.4+11-post-Debian-1deb10u1)
OS: Linux 4.19.0-5-amd64 amd64
As a temporary workaround I've downloaded the JAR file and told Gradle to depend on that JAR file.
The whole repo seems to have this problem, not just the ProtocolLib page, for some reason my project grabbed Spigot from the repo and it doesn't want to compile anymore, since it created a cache on my .gradle folder, I can still use it
Hey guys sorry about this. My auto renewal script didn't handle the certificate chain correctly. Should be fixed now!
I had this problem but managed to solve it by deleting Oracle's JDKs and JREs and installing this OpenJDK implementation and trying to build with that.
This is still a problem for me @dmulloy2 . Running using Netbeans 11.3 maven on Windows 10 with JRE and JDK 1.8 update 111.