<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.fz</groupId>
<artifactId>oa</artifactId>
<packaging>war</packaging>
<version>1.0</version>
<name>oa Maven webapp</name>
<url>http://maven.apache.org</url>
<properties>
<java-version>1.7</java-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies></dependencies>
<build>
<finalName>${project.artifactId}</finalName>
<!--default main code directory--
<sourceDirectory>src/main/java</sourceDirectory>
<!--default test code Catalog--
<testSourceDirectory>src/test/java</testSourceDirectory>
<!--processing failed to load resource profile --
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resourc E>
<resource>
<directory>src/main/resources</directory>
<INCLUDES&G T
<include>**/*.xml</include>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<plugins>
<plugin>
<--compile plug-in compiler configuration-->
<groupid>org.apac He.maven.plugins</groupid>
<artifactid>maven-compiler-plugin</artifactid>
<vers Ion>3.6.0</version>
<configuration>
<SOURCE>${JAVA-VERSION}</SOURCE>
<target>${java-version}</target>
<encoding>${project.build.sourceencoding}</e Ncoding>
</configuration>
</plugin>
<!--Tomcat Plugin--
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<!--Tomcat Management path--
<url>http://localhost:80/manager/text</url>
<!--the same ID as the server in the Settings.xml file--
<server>tomcat7</server>
<uriEncoding>utf-8</uriEncoding>
<port>80</port><!--Server port number 80 can be omitted--
<path>/</path>< deployment location for!--apps--
<contextReloadable>true</contextReloadable>
<systemProperties>
<java.util.logging.simpleformatter.format>[%4$s]%1$TF%1$tt%3$s%5$s%n</ Java.util.logging.simpleformatter.format>
</systemProperties>
</configuration>
</plugin>
</plugins>
</build>
</project>
Maven-webapp Project Pom.xml configuration