当前位置: 代码迷 >> Eclipse >> maven myeclipse 支配
  详细解决方案

maven myeclipse 支配

热度:387   发布时间:2016-04-23 01:22:17.0
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

  相关解决方案