testtest
testtest testtest test
testtest testtest test
2017-07-14
<!-- 下面是一个基本的pom文件写法 ,拿去不谢 -->
<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.darren.display</groupId>
<artifactId>manage</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>manage Maven Webapp</name>
<url>http://maven.apache.org</url>
<!-- 版本号变量化 -->
<properties>
<junit.version>4.8.2</junit.version>
<servlet-api.version>2.5</servlet-api.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>${junit.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>servlet-api</artifactId>
<version>${servlet-api.version}</version>
<type>jar</type>
<scope>compile</scope>
</dependency>
</dependencies>
<build>
<finalName>manage</finalName>
<plugins>
<plugin>
<!-- https://mvnrepository.com/artifact/org.mortbay.jetty/jetty-maven-plugin
jetty 服务插件 可配置打包完后启动
-->
<!-- <groupId>org.mortbay.jetty</groupId>
<artifactId>jetty-maven-plugin</artifactId>
<version>8.1.16.v20140903</version>-->
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat6-maven-plugin</artifactId>
<version>2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
举报