[WARNING] Failure to transfer com.ameya360.datacollect:Heracles-UpdateData:0.0.3
-SNAPSHOT/maven-metadata.xml from http://maven.aliyun.com/nexus/content/groups/p
ublic was cached in the local repository, resolution will not be reattempted unt
il the update interval of nexus-aliyun has elapsed or updates are forced. Origin
al error: Could not transfer metadata com.ameya360.datacollect:Heracles-UpdateDa
ta:0.0.3-SNAPSHOT/maven-metadata.xml from/to nexus-aliyun (http://maven.aliyun.c
om/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX
path building failed: sun.security.provider.certpath.SunCertPathBuilderExceptio
n: unable to find valid certification path to requested target
Downloading: http://maven.aliyun.com/nexus/content/groups/public/com/google/code
/gson/gson/2.8.5/gson-2.8.5.pom
原来setting.xml只配置了阿里的镜像,去阿里镜像找了也是能找到这个版本的jar,不知道为什么下不下来。
解决 :
在settings.xml文件中添加中心库的配置。
<mirrors>
<mirror>
<id>Central</id>
<url>http://repo1.maven.org/maven2</url>
<mirrorOf>central</mirrorOf>
</mirror>
</mirrors>