解决办法: 在setting中找到Maven下的Runner,勾选delegate ide build/run actions to maven, 这里的意思是将build/run交给Maven执行。 实测成功解决: