为了账号安全,请及时绑定邮箱和手机立即绑定

b哥打包时报的错。。。

ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-t
est) on project base: Unable to generate classpath: org.apache.maven.artifact.resolver.ArtifactResol
utionException: Unable to get dependency information for org.apache.maven.surefire:surefire-junit3:j
ar:2.12.4: Failed to retrieve POM for org.apache.maven.surefire:surefire-junit3:jar:2.12.4: Could no
t transfer artifact org.apache.maven.surefire:surefire-junit3:pom:2.12.4 from/to central (https://re
po.maven.apache.org/maven2): RSA premaster secret error
[ERROR] org.apache.maven.surefire:surefire-junit3:jar:2.12.4
[ERROR]
[ERROR] from the specified remote repositories:
[ERROR] central (https://repo.maven.apache.org/maven2, releases=true, snapshots=false)
[ERROR] Path to dependency:
[ERROR] 1) dummy:dummy:jar:1.0: SunTlsRsaPremasterSecret KeyGenerator not available
[ERROR] -> [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 arti
cles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

正在回答

1 回答

看下中央仓库里面到底有没有org/apache/maven/plugins
/maven-surefire-plugin-2.12.4.jar  其次看你的pom文件配置有没有问题  是在不行在m2下面建文件夹  把jar文件放进去

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消
项目管理利器——maven
  • 参与学习       173090    人
  • 解答问题       742    个

使用maven来构建和管理Java项目,从环境配置,到maven核心知识

进入课程

b哥打包时报的错。。。

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信