Create problems SpringBoot items that appear (Could not transfer artifact org.springframework.boot: spring-boot-starter-parent)

Taken https://blog.csdn.net/weimenglala/article/details/104800011

Manually import the certificate, the security certificate is about to be imported into the java cacerts certificate store

1, to ensure that the settings.xml maven of Ali source configured correctly


<Mirror>
<ID> Nexus-aliyun </ ID>
<mirrorOf> Central </ mirrorOf>
<name> the Nexus aliyun </ name>
<URL> https://maven.aliyun.com/nexus/content/groups/public </ url>
</ Mirror>
2, the chrome browser download the certificate to the local

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(1) open their computer's security java installation path in the directory, such as: C: \ Program Files \ Java \ jdk1.8.0_121 \ jre \ lib \ security \ carcerts) cacerts contains many CA certificates, the location of the Java installation manual:

(2) Open a command as an administrator in the directory prompt (cmd)

(3) enter the command: keytool -import -alias cacerts -keystore cacerts -file d: \ ali_maven.cer

(4) Enter the default keystore password: changeit

(5) whether to trust this certificate? [N]: Y

(6) show the certificate has been added to the library means that the key successfully added

(7) back into the project to re-clean, complie, to solve the problem.

 

Guess you like

Origin www.cnblogs.com/kukai/p/12666878.html