zoukankan      html  css  js  c++  java
  • CoreException: Could not get the value for parameter compilerId for plugin execution default-compile Maven项目pom文件报错,插件引用不到

    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.code.findbugs:jsr305:jar:2.0.1, org.codehaus.plexus:plexus-compiler-api:jar:2.2: Failure to transfer com.google.code.findbugs:jsr305:jar:2.0.1 from http://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.code.findbugs:jsr305:jar:2.0.1 from/to central (http://repo.maven.apache.org/maven2): The operation was cancelled.

    如何看到详细的错误信息?

    过程如下(这个问题不容易复现,应该是属于偶然性的因网络引起的问题):

    双击打开有错误的pom.xml文件,Overview视图,如下图红框标识的位置就会显示错误信息,

    鼠标左键单击错误信息就会显示出下图所示的详细信息,也可能是后边标题为“Problems in the POM”对话框显示的详细信息

    点击如下图所示的链接可以定位到POM文件对应的位置

    网上有资料说是在“<build>”和“<plugins>”标签之间添加“<pluginManagement>”,我加了也不起作用,但也没有什么负作用

    只怪自己英文太差,认真分析理解错误信息的意思,应该就是缺少对应的JAR文件,去配置的Maven本地“Repo”目录下搜索

    很明显,缺少“plexus-compiler-api-2.2.jar”文件,由于网络原因下载失败了。

    返回上一级目录,删除“2.2”文件夹。

    修改“POM.xml”,随便在空白处添加或删除一个空格,保存文件,触发更新事件!

    可能由于相同的原因,导致多个包下载失败或缺失,都使用相同的方法解决即可。

  • 相关阅读:
    solrCloud设置Tomcat jvm内存解决内存溢出的问题
    JAVA 将图片转换为Base64编码
    希望这是一个新的开始,也是一个好的开端
    最全华为鸿蒙 HarmonyOS 开发资料汇总
    iPhone X适配方案
    前端程序员经常忽视的一个JavaScript面试题
    vs for Mac 升级后编译原项目提示找不到“.NETFramework,Version=v5.0”的引用程序集
    使用FastReport的BarCode2D控件生成含中文的PDF417条形码
    vs for Mac中的启用Entity Framework Core .NET命令行工具
    64位Windows7升级IE11后无法启动的解决办法
  • 原文地址:https://www.cnblogs.com/jiliunyongjin/p/7865802.html
Copyright © 2011-2022 走看看