<?xml version="1.0" encoding="ISO-8859-1"?>
<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>
  <artifactId>myproject-war</artifactId>
  <name>myproject-war</name>
  <packaging>war</packaging>
  <build>
	<testResources>
		<testResource>
			<directory>src/main/webapp/WEB-INF</directory>
		</testResource>
		<testResource>
			<directory>src/main/config</directory>
		</testResource>
	</testResources>
    <plugins>
      <plugin>
		<groupId>org.codehaus.mojo</groupId>
		<artifactId>xdoclet-maven-plugin</artifactId>
		<executions>
			<execution>
				<id>generate-sources</id>
				<phase>generate-sources</phase>
				<goals>
					<goal>xdoclet</goal>
				</goals>
				<configuration>
					<tasks>
						<webdoclet
							destDir="${basedir}/target/${artifactId}-${version}/WEB-INF"
							mergeDir="${basedir}/src/main/mergedir" verbose="true"
							addedTags="@xdoclet-generated">
							<fileset dir="${basedir}"
								includes="**/*Servlet.java" />
							
							<deploymentdescriptor useIDs="true" servletspec="${servlet.level}">
								<contextparam name="log4jConfigLocation" value="classpath:log4j.properties" />
								<contextparam name="log4jRefreshInterval" value="10000" />
								<contextparam name="contextConfigLocation" value="classpath*:common-web-context.xml" />
								<contextparam name="locatorFactorySelector" value="classpath*:beanRefContext.xml" />
								<contextparam name="parentContextKey" value="main-context" />
								
								<welcomefile file="index.html" />
							</deploymentdescriptor>

							<webspherewebxml preCompileJSPs="true" useIds="true" 
								xmlencoding="${encoding.default}" validateXML="true" fileServingEnabled="true" />
						</webdoclet>
					</tasks>
				</configuration>
			</execution>
		</executions>
	</plugin>
    </plugins>
  </build>
  
</project>

