无法构建工件"ProjectName:战争爆炸" [英] Cannot build artifact 'ProjectName:war exploded'
问题描述
我正在IntelliJ
平台上使用Java项目,并在重新安装Mac OS之后重新开始.现在,使用BitCoinWalletApp[1] and BitCoinWalletApp[2]
和
I was working with a Java project in the IntelliJ
platform and started over after reinstalling the Mac OS again. The project structure looks slightly weird now with BitCoinWalletApp[1] and BitCoinWalletApp[2]
,
使用Tomcat 8
运行时,出现以下错误
When I run with the Tomcat 8
, I get the following error,
Error:Cannot build artifact 'BitcoinWalletApp (2):war exploded' because it is included into a circular dependency (artifact 'BitcoinWalletApp (2):war exploded', artifact 'BitcoinWalletApp (1):war exploded')
这里有什么问题以及如何解决?
Whats the issue here and how to solve it?
推荐答案
发生这种情况是因为项目具有多个pom.xml文件,该文件被intelliJ检测为有效pom.xml的另一个来源,在本例中为pom. xml.back,要对其进行修复,请删除pom.xml的备份版本
turns out this happened because the project has more than one pom.xml file which intelliJ detected as another source of valid pom.xml, in this case its pom.xml.back, to fix it, delete the backup version of your pom.xml
这篇关于无法构建工件"ProjectName:战争爆炸"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!