Intellij尝试将pom.xml视为jar文件 [英] Intellij trying to treat pom.xml as jar file

查看:102
本文介绍了Intellij尝试将pom.xml视为jar文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在尝试从Intellij运行测试(在Maven项目上)时,我不断遇到以下提到的错误

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

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

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. 无效的Intellij Idea
  2. 删除我的.m2存储库并重新创建项目

推荐答案

好,终于解决了.osgi方面显然是负责任的.一旦移除了方面,问题就解决了.不知道确切的原因,但是intellij osgi方面已知是不稳定的.更多信息此处

ok , finally fixed.The osgi facets apparently were responsible.The issue was resolved once the facet was removed.Do not know the exact reason but the intellij osgi facet is known to be unstable. More info here

这篇关于Intellij尝试将pom.xml视为jar文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆