你好,我按照视频,动手写好Maven的POM,进行编译,编译失败,请老师指点

来源:4-11 动手写Maven的POM文件3

MikeAcesse

2018-07-02

[INFO] Scanning for projects...

[INFO] 

[INFO] ------------------------------------------------------------------------

[INFO] Building MKTest 0.0.1-SNAPSHOT

[INFO] ------------------------------------------------------------------------

[INFO] Downloading: https://repo.maven.apache.org/maven2/org/apache/maven/plugins/maven-compiler-plugin/3.7.0/maven-compiler-plugin-3.7.0.pom

[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time: 1.412 s

[INFO] Finished at: 2018-07-02T21:45:52+08:00

[INFO] Final Memory: 9M/153M

[INFO] ------------------------------------------------------------------------

[ERROR] Plugin org.apache.maven.plugins:maven-compiler-plugin:3.7.0 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-compiler-plugin:jar:3.7.0: Could not transfer artifact org.apache.maven.plugins:maven-compiler-plugin:pom:3.7.0 from/to central (https://repo.maven.apache.org/maven2): RSA premaster secret error: SunTls12RsaPremasterSecret KeyGenerator not available -> [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:


写回答

1回答

风落几番

2018-07-02

项目右键-->maven-->Update Dependencies,勾选force update来进行依赖包的更新~

1
2
风落几番
回复
MikeAcesse
你可以自己试着分析一下报错,这个错误信息是由于maven下载jar包失败导致的,那你就要去看maven的配置以及下载jar包是否发生了异常
2018-07-03
共2条回复

Selenium3.0平台级自动化测试框架综合实战

晋级高级自动化测试工程师,拿下行业高薪

532 学习 · 85 问题

查看课程