?????????maven????????tomcat???????Web???
???????ü???java web????????
??????????????maven?????tomcat???м?????tomcat-maven-plugin????????????plugin??repository?????????????tomcat-maven-plugin??tomcat ??
????????????
????mvn tomcat:run
???????????
??????????????????????
????mvn tomcat:deploy
?????????can not invoke tomcat manager??????????????ж?tomcat manager?????á?
??????????maven???????tomcat????web???
???????????tomcat?????????????tomcat??maven?????????á?
????maven?????????tomcat????????????裺
???????????tomcat??manager?????????????????????tomcat??plugin??????????maven setting.xml????е?server?tomcat??manager??
??????????????tomcat???????°汾??tomcat6(or7)-maven-plugin??
??????1??????tomcat ??manager???
?????????tomcat-path/conf/tomcat-user.xml?м???????

??????2??????maven setting.xml
???????????????????????~/.m2/setting.xml??

??????3??????????????? tomcat??plugin
???????????pom.xml?м???plugin.

????maven????plugin???????repo???????????????repo??
<span style="font-size: 16px;"><!---->
<!--if no repository defined?? there will be error:-->
<!--No plugin found for prefix 'tomcat7' in the current project and in the plugin groups for ..-->
<!--from the repository [local]??central (https://repo.maven.apache.org.maven2-->
<repositories>
<repository>
<id>people.apache.snapshots</id>
<url>http://repository.apache.org/content/groups/snapshots-group</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<pluginRepositories>
<pluginRepository>
<id>apache.snapshots</id>
<name>Apache Snapshots</name>
<url>http://repository.apache.org/content/groups/snapshots-groups</url>
<snapshots>
<enabled>true</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</span>