Error:Cannot build artifact xxx:war exploded' because it is included into a circular dependency

Error:Cannot build artifact xxx:war exploded’ because it is included into a circular dependency 解决方案

IDEA 项目报错:Error:Cannot build artifact xxx:war exploded’ because it is included into a circular dependency

解决:

ctrl + alt + shift + s 打开 project structure (或者ctrl alt + a 搜索 project structure)
点左边artifacts,删掉多余的两个,分别是

  • xxx:war
  • xxx:war exploded

删掉就好了。

你可能感兴趣的:(解决方案,java)