小编use*_*587的帖子

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

在尝试从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并重新创建了该项目

intellij-idea pom.xml maven

4
推荐指数
1
解决办法
894
查看次数

标签 统计

intellij-idea ×1

maven ×1

pom.xml ×1