maven加入插件(tomcat,jetty)

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

<modelVersion>4.0.0</modelVersion>

<groupId>com.tcf</groupId>

<artifactId>feng</artifactId>

<packaging>war</packaging>

<version>0.0.1-SNAPSHOT</version>

<name>feng Maven Webapp</name>

<url>http://maven.apache.org</url>

<dependencies>

<dependency>

<groupId>junit</groupId>

<artifactId>junit</artifactId>

<version>3.8.1</version>

<scope>test</scope>

</dependency>

<dependency>

<groupId>javax.servlet</groupId>

<artifactId>javax.servlet-api</artifactId>

<version>3.1.0</version>

<scope>provided</scope>

</dependency>


</dependencies>

<build>

<finalName>feng</finalName>

<plugins>

<plugin>

<!-- 

<groupId>org.mortbay.jetty</groupId>

<artifactId>jetty-maven-plugin</artifactId> 

<version>8.1.16.v20140903</version>

-->

<groupId>org.apache.tomcat.maven</groupId>

<artifactId>tomcat7-maven-plugin</artifactId>

<version>2.2</version>

<executions>

<execution>

<phase>package</phase>

<goals>

<goal>run</goal>

</goals>

</execution>

</executions>

</plugin>

</plugins>

</build>

</project>


你可能感兴趣的:(maven加入插件(tomcat,jetty))