请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

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

[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:


正在回答 回答被采纳积分+3

1回答

风落几番 2018-07-02 22:00:26

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

1 回复 有任何疑惑可以回复我~
  • 提问者 MikeAcesse #1
    你好,按照你说的操作之后,又报别的错误。log 如下:-- maven-surefire-
    
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test (default-test) on project MavenTest: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.17:test failed: Plugin org.apache.maven.plugins:maven-surefire-plugin:2.17 or one of its dependencies could not be resolved: Failed to collect dependencies at org.apache.maven.plugins:maven-surefire-plugin:jar:2.17 -> org.apache.maven.surefire:maven-surefire-common:jar:2.17: Failed to read artifact descriptor for org.apache.maven.surefire:maven-surefire-common:jar:2.17: Could not transfer artifact org.apache.maven.surefire:maven-surefire-common:pom:2.17 from/to central (https://repo.maven.apache.org/maven2): RSA premaster secret error: SunTls12RsaPremasterSecret KeyGenerator not available -> [Help 1]
    回复 有任何疑惑可以回复我~ 2018-07-03 00:04:23
  • 风落几番 回复 提问者 MikeAcesse #2
    你可以自己试着分析一下报错,这个错误信息是由于maven下载jar包失败导致的,那你就要去看maven的配置以及下载jar包是否发生了异常
    回复 有任何疑惑可以回复我~ 2018-07-03 00:06:59
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信