MyEclipse2016 maven更新、tomcat7插件项目自动启动、WAR包生成
一、maven远程更新

二、项目运行和同步打war包


Goals :tomcat7:deploy
三、配置文件 pom.xml
<build> <plugins> <plugin> <artifactId>maven-war-plugin</artifactId> </plugin> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <encoding>UTF-8</encoding> <source>1.6</source> <target>1.6</target> </configuration> </plugin> <plugin> <groupId>org.apache.tomcat.maven</groupId> <artifactId>tomcat7-maven-plugin</artifactId> <version>2.2</version> <configuration> <url>http://localhost:9999/manager/text</url> <server>tomcat7</server> <port>9999</port> <path>/</path> </configuration> <executions> <execution> <phase>package</phase> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> </plugins> </build>