【发布时间】:2012-12-27 06:24:24
【问题描述】:
在尝试从 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
但是,从命令行运行时,所有 maven 循环都运行良好。
以前有人遇到过这个问题吗?
这些东西我都试过了
- Intellij Idea 无效
- 删除了我的 .m2 存储库并重新创建了项目
【问题讨论】:
-
你在
Settings里改了吗?|File Types? -
Intellij Idea 版本为 11.1.4
-
检查
pom.xml或*.xml是否未 添加here。 -
不,两者都没有被添加为存档文件。
-
你能分享一个项目来重现这个问题吗?
标签: maven intellij-idea pom.xml