Intellij试图将pom.xml视为jar文件

use*_*587 4 intellij-idea pom.xml maven

在尝试从Intellij运行测试(在maven项目上)时,我经常遇到下面提到的错误

[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
Run Code Online (Sandbox Code Playgroud)

但是,从命令行运行时,所有maven周期都运行良好.

以前有人遇到过这个问题吗?

我已经尝试过所有这些东西

  1. 无效的Intellij Idea
  2. 删除了我的.m2 repo并重新创建了该项目

use*_*587 7

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