<?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">
  <parent>
    <artifactId>myproject</artifactId>
    <groupId>some.group.id</groupId>
    <version>1.3-SNAPSHOT</version>
  </parent>
  <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>
	<plugin>
		<artifactId>maven-antrun-plugin</artifactId>
		<executions>
			<execution>
				<id>edb-package</id>
				<phase>install</phase>
				<goals>
					<goal>run</goal>
				</goals>
				<configuration>
					<tasks>
						<copy todir="${edb.package.wasdir}/properties/">
							<fileset dir="src/main/config" />
						</copy>
					</tasks>
				</configuration>
			</execution>
		</executions>
	</plugin>
    </plugins>
  </build>
  
  <dependencies>
    <dependency>
      <groupId>${groupId}</groupId>
      <artifactId>myproject-server</artifactId>
      <version>${version}</version>
    </dependency>
    <dependency>
      <groupId>org.springframework</groupId>
      <artifactId>spring-webmvc</artifactId>
    </dependency>
    <!-- taglibs -->
    <dependency>
    	<groupId>taglibs</groupId>
    	<artifactId>datetime</artifactId>
    	<version>1.0.1</version>
    </dependency>
    <dependency>
    	<groupId>javax.servlet</groupId>
    	<artifactId>jstl</artifactId>
    	<version>1.1.0</version>
    </dependency>
    <dependency>
    	<groupId>org.springframework</groupId>
    	<artifactId>spring-mock</artifactId>
    </dependency>
    <dependency>
    	<groupId>commons-fileupload</groupId>
    	<artifactId>commons-fileupload</artifactId>
    </dependency>
    <dependency>
    	<groupId>commons-math</groupId>
    	<artifactId>commons-math</artifactId>
    </dependency>
    <dependency>
    	<groupId>com.jamonapi</groupId>
    	<artifactId>jamon</artifactId>
    </dependency>
    <dependency>
    	<groupId>commons-chain</groupId>
    	<artifactId>commons-chain</artifactId>
    </dependency>
  </dependencies>
</project>
