问题:在配置maven tomcat的时候发现git报错Artifact “xxx - xxxx”:war exploded。在网上找了好多方法都是说是项目配置问题或者代码问题,最后请教大佬才知道是git分支的问题(当然要看自己的情况而定)。
解决方法:在idea终端输入
git branch -a
出现错误
remotes/origin/HEAD -> origin/master
remotes/origin/master
在输入命令git checkout -b zhanghanlun origin/分支
例如
git checkout -b zhanghanlun origin/master
ok再运行就成功了