maven问题

来源:3-1 使用maven构建netty基础依赖

311609000424

2020-04-11

按照视频3-1出现
图片描述
图片描述
错误提示:Multiple annotations found at this line:
- CoreException: Could not calculate build plan: Plugin
org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies
could not be resolved: Failed to read artifact descriptor for
org.apache.maven.plugins:maven-compiler-plugin:jar:3.1: ArtifactResolutionException:
Failure to transfer org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from
https://repo.maven.apache.org/maven2 was cached in the local repository, resolution
will not be reattempted until the update interval of central has elapsed or updates
are forced. Original error: Could not transfer artifact
org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from/to central (https://
repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443
[repo.maven.apache.org/151.101.52.215] failed: Connection timed out: connect
- Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (execution: default-
testCompile, phase: test-compile)
- Failure to transfer org.apache.maven.plugins:maven-resources-plugin:pom:
2.6 from https://repo.maven.apache.org/maven2 was cached in the local repository,
resolution will not be reattempted until the update interval of central has elapsed or
updates are forced. Original error: Could not transfer artifact
org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://
repo.maven.apache.org/maven2): Connect to repo.maven.apache.org:443
[repo.maven.apache.org/151.101.52.215] failed: Connection timed out: connect
- Plugin execution not covered by lifecycle configuration:
org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-
compile, phase: compile)
有道翻译:这一行有多个注释:

  • CoreException:无法计算构建计划:插件

plugin: maven-compiler-plugin:3.1或它的一个依赖项

无法解决:读取工件描述符失败

org.apache.maven.plugins: maven-compiler-plugin: jar: 3.1: ArtifactResolutionException:

未能将org.apache.maven.plugin:maven-compiler-plugin:pom:3.1从

将不会被重新尝试,直到中央的更新间隔已经过去或更新

是被迫的。原始错误:无法传输工件

org.apache.maven.plugins:maven-compiler-plugin:pom:3.1 from/to central (https://)

repo.maven.apache.org/maven2):连接到repo.maven.apache.org:443

[repo.maven.apache.org/151.101.52.215]失败:连接超时:连接

-插件执行不包括在生命周期配置:

org.apache.maven.plugins: maven-compiler-plugin: 3.1: testCompile(执行:默认-

testCompile阶段:任意)

-无法传输org.apache.maven.plugin:maven-resources-plugin:pom:

2.6从https://repo.maven.apache.org/maven2被缓存在本地存储库中,

解析将不会被重新尝试,直到中央的更新间隔已经过去或

更新是被迫的。原始错误:无法传输工件

org.apache.maven.plugins:maven-resources-plugin:pom:2.6 from/to central (https://)

repo.maven.apache.org/maven2):连接到repo.maven.apache.org:443

[repo.maven.apache.org/151.101.52.215]失败:连接超时:连接

-插件执行不包括在生命周期配置:

org.apache.maven.plugins: maven-compiler-plugin: 3.1:编译(执行:违约

编译阶段:编译)

写回答

1回答

风间影月

2020-04-11

你的环境有问题吧,本地没有装过maven吧。如果之前没有接触过maven的可以先到慕课网看看免费视频哈

0
0

Netty+Spring Boot仿微信-全栈开发高性能后台及客户端

SpringBoot/Netty+MUI全栈开发 同时搞定后台+ Android&iOS

1500 学习 · 693 问题

查看课程