5

While trying to run test (on a maven project) from Intellij , I am constantly getting below mentioned error

[my-module] Exception in parsing jar file for extract from jar: /path/to/pom.xml java.util.zip.ZipException: The JAR/ZIP file (/path/to/pom.xml) seems corrupted, error: error in opening zip file

However all maven cycles run well when run from the command line.

Has anyone faced this issue before ?

I have already tried all these things

  1. Invalidated Intellij Idea
  2. Deleted my .m2 repo and recreated the project
4

2 回答 2

8

好的,终于修复了。osgi facet 显然是负责任的。一旦删除 facet,问题就解决了。不知道确切原因,但已知 intellij osgi facet 不稳定。更多信息在这里

于 2012-12-27T19:05:23.580 回答
0

即使在 2020 年,这个 IntelliJ (Ultimate 2019.2) 插件也会尝试将 pom.xml 文件作为 jar 文件打开。禁用 OSGI 插件对我有帮助:

在此处输入图像描述

在此处输入图像描述

于 2020-07-15T11:49:00.800 回答