完整异常:
Error running ‘springmvc-demo [org.apache.tomcat.maven:tomcat7-maven-plugin:2.2:run]’: No valid Maven installation found. Either set the home directory in the configuration dialog or set the M2_HOME environment variable on your system.
异常原因:maven地址以及settings配置错误,或者使用了默认配置,需要手动正确的配置。