【问题标题】:Eclipse Neon / Maven / error Failed to parse plugin descriptor for org.apache.maven.plugins:maven-install-plugin:2.4 / invalid LOC headerEclipse Neon/Maven/错误无法解析 org.apache.maven.plugins:maven-install-plugin:2.4 的插件描述符/无效的 LOC 标头
【发布时间】:2018-03-07 07:47:10
【问题描述】:

我正在尝试在 Eclipse Neon 上运行 Maven 安装命令,但始终出现以下错误:


[错误] 无法解析 org.apache.maven.plugins:maven-install-plugin:2.4 的插件描述符(C:\Users\Anna.m2\repository\org\apache\maven\plugins\maven-install -plugin\2.4\maven-install-plugin-2.4.jar):无效的 LOC 标头(错误签名)-> [帮助 1] [错误] [错误] 要查看错误的完整堆栈跟踪,请使用 -e 开关重新运行 Maven。 [错误] 使用 -X 开关重新运行 Maven 以启用完整的调试日志记录。 [错误] [错误] 有关错误和可能的解决方案的更多信息,请阅读以下文章:

[错误] [帮助 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginDescriptorParsingException

我尝试按照帖子Failed to parse plugin descriptor for org.apache.maven.plugins:maven-resources-plugin:2.4.3.. error in opening zip file 中的建议删除整个文件夹,但这并没有解决我的问题。

有什么办法可以解决这个问题吗?

【问题讨论】:

    标签: maven eclipse-neon


    【解决方案1】:

    去这个地方就行了

    C:\Users\Anna.m2\repository\org\apache\maven\plugins\maven-install-plugin\2.4\
    

    并删除此文件

    maven-install-plugin-2.4.jar

    或重命名,然后从运行配置中执行 maven clean

    【讨论】:

      猜你喜欢
      • 2015-04-13
      • 2015-02-15
      • 1970-01-01
      • 1970-01-01
      • 2018-12-29
      • 2011-12-10
      • 1970-01-01
      • 2010-12-21
      相关资源
      最近更新 更多