老师,我这个问题有点多啊

正在回答 回答被采纳积分+1

登陆购买课程后可参与讨论,去登陆

4回答
好帮手慕柯南 2020-02-09 15:03:07

同学,你这个错误是Problems中的错误吗?

如果是你可以先忽略,往后学习试试,是否程序会报错。

祝学习愉快~

好帮手慕阿满 2020-02-06 15:58:32

同学你好,这个可能是由于下载maven依赖失败造成的错误,建议同学修改eclipse中settings.xml文件和本地仓库的位置,点击window->perferences->Maven->USer setting,如:

http://img1.sycdn.imooc.com//climg/5e3bc65809cc775909320749.jpg

另外建议同学删除本地仓库中的文件,刷新项目再试试。

祝:学习愉快~

  • 提问者 无谓亦无畏 #1
    老师,我不太明白,是要将.m2下的文件都删了吗,还有就是修改位置的那个我还是有点问题
    2020-02-06 16:12:42
  • 好帮手慕阿满 回复 提问者 无谓亦无畏 #2
    同学你好,建议将本地仓库中的问题都删除,另外修改位置处同学有什么问题,建议同学将问题详细描述一下。祝:学习愉快~
    2020-02-06 16:50:03
  • 提问者 无谓亦无畏 回复 好帮手慕阿满 #3
    不知道该怎么该
    2020-02-06 17:37:39
提问者 无谓亦无畏 2020-02-06 13:21:49

Description Resource Path Location Type

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: com.google.collections:google-collections:jar:1.0, junit:junit:jar:3.8.2: Failure to transfer com.google.collections:google-collections:jar:1.0 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 com.google.collections:google-collections:jar:1.0 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /maven-first line 1 Maven Project Build Lifecycle Mapping Problem

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: com.google.collections:google-collections:jar:1.0, junit:junit:jar:3.8.2: Failure to transfer com.google.collections:google-collections:jar:1.0 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 com.google.collections:google-collections:jar:1.0 from/to central (https://repo.maven.apache.org/maven2): The operation was cancelled. pom.xml /maven-first line 1 Maven Project Build Lifecycle Mapping Problem

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): The operation was cancelled. pom.xml /maven-first line 1 Maven Configuration Problem

Plugin execution not covered by lifecycle configuration: org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (execution: default-compile, phase: compile) pom.xml /maven-first line 1 Maven Project Build Lifecycle Mapping Problem

这是具体的错误

提问者 无谓亦无畏 2020-02-06 12:56:16

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

 这一部分报错

问题已解决,确定采纳
还有疑问,暂不采纳

恭喜解决一个难题,获得1积分~

来为老师/同学的回答评分吧

0 星
Java数据库开发与实战应用2018版
  • 参与学习           人
  • 提交作业       277    份
  • 解答问题       4297    个

Java数据库开发的必备技能,从流行的MySQL数据库开始,到Java原生的数据库管理接口JDBC的使用,再到常用的数据持久化框架MyBatis,让你向Java工程师的目标又迈进了一步!

了解课程
请稍等 ...
意见反馈 帮助中心 APP下载
官方微信

在线咨询

领取优惠

免费试听

领取大纲

扫描二维码,添加
你的专属老师