【Gradle】Web Facets/Artifacts will not be configured properly
原创
©著作权归作者所有:来自51CTO博客作者后端研发Marion的原创作品,请联系作者获取转载授权,否则将追究法律责任
Warning:<i><b>root project 'provider': Web Facets/Artifacts will not be configured properly</b>
Details: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Could not resolve all files for configuration ':runtimeClasspath'.
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.aliyun:aliyun-java-sdk-core:4.1.1.
Required by:
project :
Caused by: org.gradle.internal.resolve.ModuleVersionResolveException: Could not resolve com.aliyun:aliyun-java-sdk-core:4.1.1.
Caused by: org.gradle.api.resources.ResourceException: Could not get resource 'https://maven.aliyun.com/repository/central/com/aliyun/aliyun-java-sdk-core/4.1.1/aliyun-java-sdk-core-4.1.1.pom'.
Caused by: org.gradle.internal.resource.transport.http.HttpRequestException: Could not GET 'https://maven.aliyun.com/repository/central/com/aliyun/aliyun-java-sdk-core/4.1.1/aliyun-java-sdk-core-4.1.1.pom'.
Caused by: javax.net.ssl.SSLHandshakeException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target</i>
一、问题分析
Java Gradle项目报错Warning:project 'xxx': Web Facets/Artifacts will not be ....
二、问题原因
原来是我开启了charles,有代理导致访问不了
org.gradle.api.resources.ResourceException: Could not get resource ‘https://xxx.xxx/xxx.pom