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

eclipse创建maven项目后run报错

eclipse创建maven项目后run报错

qq_烈火燎原_0 2018-07-06 16:51:59
Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-install-plugin:jar:2.4: Could not transfer artifact org.apache.maven.plugins:maven-install-plugin:pom:2.4 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [Help 1]
查看完整描述

1 回答

?
OneKi

TA贡献75条经验 获得超45个赞

在pom.xml文件里面加入

<dependency>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-resources-plugin</artifactId>
    <version>2.4.3</version>
</dependency>

然后再run as-maven install

查看完整回答
反对 回复 2018-07-09
  • 慕神qiansli
    慕神qiansli
    添加之后控制台报错了 -Dmaven.multiModuleProjectDirectory system property is not set.
  • 1 回答
  • 0 关注
  • 2431 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信