先进入tomcat目录启动tomcat,然后右键项目 run as-》run configrations: Goals项输入:package tomcat:redeploy Maven Runtime选择我们自己的maven。如图: