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

运行mvn compile 报错,怎么解决啊?求大神帮忙!!

[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.537 s
[INFO] Finished at: 2018-08-15T17:14:33+08:00
[INFO] Final Memory: 9M/153M
[INFO] ------------------------------------------------------------------------
[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven-resources-plugin:jar:2.6: Could not transfer artifact org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://repo.maven.apache.org/maven2): Received fatal alert: protocol_version -> [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:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginResolutionException

正在回答

2 回答

在settings.xml 的<mirrors>里面加下面的镜像试试

<mirror>

<id>Central</id>

<url>http://repo1.maven.org/maven2</url>

<mirrorOf>central</mirrorOf>

</mirror>


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

Plugin org.apache.maven.plugins:maven-resources-plugin:2.6 or one of its dependencies could not be resolved: 版本号换一个试试

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

举报

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

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

进入课程

运行mvn compile 报错,怎么解决啊?求大神帮忙!!

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