Tomcat部署项目报错Error:Cannot build artifact xxx ... circular dependency ...

问题

在IDEA中Edit Configuration那里配置热部署项目,项目运行时会报错

Error:Cannot build artifact 'shopping-platform:war exploded'  
because it is included into a circular dependency (artifact  
'shopping-platform:war exploded', artifact 'taobao:war exploded')

原因 & 解决

原因一般是项目重命名啥的造成的,看项目结构的Artifacts, 如果同一个项目有几个不同名的基本会发生错误。

解决方法
删掉多的Artifacts即可解决(保留项目名的war和热部署war)
Tomcat部署项目报错Error:Cannot build artifact xxx ... circular dependency ...