Gradle编译疑难杂症 PKIX path validation failed
17:48:06: Executing ':oceanport-api:XxxxxApplication.main()'...
> Task :oceanport-common:compileJava
> Task :oceanport-common:compileJava FAILEDFAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all files for configuration ':xxxxx-common:compileClasspath'.
> Could not resolve io.grpc:grpc-core:[1.28.0].
Required by:
project :1.2.2.M7 > io.grpc:grpc-services:1.28.0
project :1.2.2.M7 > io.grpc:grpc-netty-shaded:1.28.0
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://nexus.bsdn.org/content/groups/public/io/grpc/grpc-core/maven-metadata.xml.
> Could not get resource 'https://nexus.bsdn.org/content/groups/public/io/grpc/grpc-core/maven-metadata.xml'.
> Could not GET 'https://nexus.bsdn.org/content/groups/public/io/grpc/grpc-core/maven-metadata.xml'.
> sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed
> Failed to list versions for io.grpc:grpc-core.
> Unable to load Maven meta-data from https://repo.maven.apache.org/maven2/io/grpc/grpc-core/maven-metadata.xml.
> Could not HEAD 'https://repo.maven.apache.org/maven2/io/grpc/grpc-core/maven-metadata.xml'.
> Connect to repo.maven.apache.org:443 [repo.maven.apache.org/146.75.44.215] failed: Read timed out* 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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/4.10.3/userguide/command_line_interface.html#sec:command_line_warningsBUILD FAILED in 35s
1 actionable task: 1 executed
勾选IDEA Gradle工具栏离线模式,再次运行
更多推荐

所有评论(0)