eclipse创建完maven项目后pom.xml文件中的 <packaging>war</packaging>报错

错误信息如下CoreException:CouldnotgetthevalueforparametercompilerIdforpluginexecutiondefaul... 错误信息如下CoreException: Could not get the value for parameter compilerId for plugin execution default-compile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-artifact:jar:2.0.9, org.apache.maven:maven-toolchain:jar:1.0: Failure to transfer org.apache.maven:maven-artifact:jar:2.0.9 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:maven-artifact:jar:2.0.9 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org

Description Resource Path Location Type
CoreException: Could not get the value for parameter compilerId for plugin execution default-testCompile: PluginResolutionException: Plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven:maven-artifact:jar:2.0.9, org.apache.maven:maven-toolchain:jar:1.0: Failure to transfer org.apache.maven:maven-artifact:jar:2.0.9 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:maven-artifact:jar:2.0.9 from/to central (https://repo.maven.apache.org/maven2): repo.maven.apache.org pom.xml /test line 6 Maven Project Build Lifecycle Mapping Problem

Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile) pom.xml /test line 6 Maven Project Build Lifecycle Mapping Problem

Description Resource Path Location Type
Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:testCompile (execution: default-testCompile, phase: test-compile) pom.xml /test line 6 Maven Project Build Lifecycle Mapping Problem
展开
 我来答
为自己加油lili
2018-07-24 · 超过93用户采纳过TA的回答
知道小有建树答主
回答量:318
采纳率:78%
帮助的人:84万
展开全部

可能是依赖的jar包在资源库中没找到,或者有问题;

网页链接

推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式