maven myeclipse 部署

在myeclipse中搭建了maven开发环境,但是部署比较麻烦,记录如下:

pom.xml中添加tomcat6-maven-plugin插件:

 

<plugin>
				<groupId>org.apache.tomcat.maven</groupId>
				<artifactId>tomcat6-maven-plugin</artifactId>
				<version>2.1</version>
				<executions>
					<execution>
						<id>tomcat-deploy</id>
						<phase>deploy</phase>
						<goals>
							<goal>deploy</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<path>/</path>
                                        <!--热部署-->
					<contextReloadable>true</contextReloadable>
				</configuration>
</plugin>

 

 

 然后new 一个 maven build 命令 tomcat:run

你可能感兴趣的:(MyEclipse)