<?xml version="1.0" encoding="UTF-8"?>
	<!--
		Licensed to the Apache Software Foundation (ASF) under one or more
		contributor license agreements. See the NOTICE file distributed with
		this work for additional information regarding copyright ownership.
		The ASF licenses this file to you under the Apache License, Version
		2.0 (the "License"); you may not use this file except in compliance
		with the License. You may obtain a copy of the License at

		http://www.apache.org/licenses/LICENSE-2.0 Unless required by
		applicable law or agreed to in writing, software distributed under the
		License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
		CONDITIONS OF ANY KIND, either express or implied. See the License for
		the specific language governing permissions and limitations under the
		License.
	-->
<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>

	<parent>
		<groupId>org.apache.geronimo.samples</groupId>
		<artifactId>DataCDInfo</artifactId>
		<version>2.2.1</version>
	</parent>

	<artifactId>DataCDInfo-JTA-war</artifactId>
	<name>Geronimo Samples :: DataCDInfo JTA + Struts1 :: WAR</name>
	<packaging>war</packaging>

	<description>Geronimo Samples - DataCD Information Management Tool</description>

	<dependencies>
		
		<dependency> 
			<groupId>org.apache.geronimo.samples</groupId>
			<artifactId>DataCDInfo-JTA-ejb</artifactId> 
			<version>${version}</version>
			<scope>provided</scope> 
		</dependency>
		
		<dependency>
			<groupId>antlr</groupId>
			<artifactId>antlr</artifactId>
			<version>2.7.2</version>
		</dependency>

		<dependency>
			<groupId>commons-beanutils</groupId>
			<artifactId>commons-beanutils</artifactId>
			<version>1.6</version> 
		</dependency>
		<dependency>
			<groupId>commons-chain</groupId>
			<artifactId>commons-chain</artifactId>
			<version>1.1</version>
			<exclusions>
                    	    <exclusion>
                        	<groupId>myfaces</groupId>
				<artifactId>myfaces-api</artifactId>
                    	    </exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>commons-digester</groupId>
			<artifactId>commons-digester</artifactId>
			<version>1.8</version> 
		</dependency>
		<dependency>
			<groupId>commons-fileupload</groupId>
			<artifactId>commons-fileupload</artifactId>
			<version>1.2.1</version>			
		</dependency>
		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
			<version>1.4</version>			
		</dependency>
		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
			<version>1.0.4</version>			
		</dependency>
		<dependency>
			<groupId>commons-validator</groupId>
			<artifactId>commons-validator</artifactId>
			<version>1.3.1</version>
		</dependency>
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>jstl</artifactId>
			<scope>provided</scope>	
		</dependency>		
		<dependency>
			<groupId>oro</groupId>
			<artifactId>oro</artifactId>
			<version>2.0.8</version>
		</dependency>		
		<dependency>
			<groupId>org.apache.struts</groupId>
			<artifactId>struts-core</artifactId>
			<version>1.3.8</version>
			<exclusions>
                    	    <exclusion>
                        	<groupId>myfaces</groupId>
				<artifactId>myfaces-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>portlet-api</groupId>
				<artifactId>portlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>taglibs</groupId>
				<artifactId>standard</artifactId>
                    	    </exclusion>
			    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>jstl</artifactId>
                    	    </exclusion>
                	</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.struts</groupId>
			<artifactId>struts-el</artifactId>
			<version>1.3.8</version>
			<exclusions>
                    	    <exclusion>
                        	<groupId>myfaces</groupId>
				<artifactId>myfaces-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>portlet-api</groupId>
				<artifactId>portlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>taglibs</groupId>
				<artifactId>standard</artifactId>
                    	    </exclusion>
			    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>jstl</artifactId>
                    	    </exclusion>
                	</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.struts</groupId>
			<artifactId>struts-extras</artifactId>
			<version>1.3.8</version>
			<exclusions>
                    	    <exclusion>
                        	<groupId>myfaces</groupId>
				<artifactId>myfaces-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>portlet-api</groupId>
				<artifactId>portlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>taglibs</groupId>
				<artifactId>standard</artifactId>
                    	    </exclusion>
			    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>jstl</artifactId>
                    	    </exclusion>
                	</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.struts</groupId>
			<artifactId>struts-faces</artifactId>
			<version>1.3.8</version>
			<exclusions>
                    	    <exclusion>
                        	<groupId>myfaces</groupId>
				<artifactId>myfaces-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>portlet-api</groupId>
				<artifactId>portlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>taglibs</groupId>
				<artifactId>standard</artifactId>
                    	    </exclusion>
			    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>jstl</artifactId>
                    	    </exclusion>
                	</exclusions>
		</dependency>
		<dependency>
			<groupId>org.apache.struts</groupId>
			<artifactId>struts-mailreader-dao</artifactId>
			<version>1.3.8</version>
			<exclusions>
                    	    <exclusion>
                        	<groupId>myfaces</groupId>
				<artifactId>myfaces-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>portlet-api</groupId>
				<artifactId>portlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>taglibs</groupId>
				<artifactId>standard</artifactId>
                    	    </exclusion>
			    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>jstl</artifactId>
                    	    </exclusion>
                	</exclusions>
		</dependency>
		<!--		<dependency>-->
		<!--			<groupId>org.apache.struts</groupId>-->
		<!--			<artifactId>struts-scripting</artifactId>-->
		<!--			<version>1.3.10</version>-->
		<!--		</dependency>-->
		<dependency>
			<groupId>org.apache.struts</groupId>
			<artifactId>struts-taglib</artifactId>
			<version>1.3.8</version>
			<exclusions>
                    	    <exclusion>
                        	<groupId>myfaces</groupId>
				<artifactId>myfaces-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>portlet-api</groupId>
				<artifactId>portlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>servlet-api</artifactId>
                    	    </exclusion>
                    	    <exclusion>
                        	<groupId>taglibs</groupId>
				<artifactId>standard</artifactId>
                    	    </exclusion>
			    <exclusion>
                        	<groupId>javax.servlet</groupId>
				<artifactId>jstl</artifactId>
                    	    </exclusion>
                	</exclusions>
		</dependency>
		<!--<dependency>
			<groupId>org.apache.struts</groupId>
			<artifactId>struts-tiles</artifactId>
			<version>1.3.8</version>
		</dependency>-->
		<!--<dependency>
			<groupId>org.apache.velocity</groupId>
			<artifactId>velocity-tools</artifactId>
			<version>1.3</version>
		</dependency>-->
		<dependency>
	                <groupId>org.apache.myfaces.core</groupId>
        	        <artifactId>myfaces-api</artifactId>
			<scope>provided</scope>		
		</dependency>
		<dependency>
            		<groupId>javax.portlet</groupId>
            		<artifactId>portlet-api</artifactId>
            		<scope>provided</scope>
        	</dependency>
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-servlet_2.5_spec</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-jsp_2.1_spec</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-annotation_1.0_spec</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-ejb_3.0_spec</artifactId>
			<scope>provided</scope>
		</dependency>

		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-jpa_1.0_spec</artifactId>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>org.apache.geronimo.specs</groupId>
			<artifactId>geronimo-jta_1.1_spec</artifactId>
			<scope>provided</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-antrun-plugin</artifactId>
				<executions>
					<execution>
						<phase>process-resources</phase>
						<id>copy-parent-site</id>
						<goals>
							<goal>run</goal>
						</goals>
						<configuration>
							<tasks>
								<echo>Copying site directory from parent</echo>
								<copy todir="${project.build.directory}/${pom.artifactId}-2.2" failonerror="false" overwrite="true">
									<fileset dir="${pom.basedir}/../docs" />
								</copy>
							</tasks>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<archiveClasses>false</archiveClasses>
					<webResources>
						<resource>
							<directory>${pom.basedir}/src/main/resources</directory>
							<!-- override the destination directory for this resource -->
							<targetPath>WEB-INF/classes</targetPath>
							<!-- enable filtering -->
							<filtering>true</filtering>
							<excludes> 
							    <exclude>*.template</exclude>
							</excludes>
						</resource>
						<resource>
							<directory>${project.build.outputDirectory}</directory>
							<includes>
								<include>META-INF/LICENSE*</include>
								<include>META-INF/NOTICE*</include>
								<include>META-INF/DISCLAIMER*</include>
							</includes>
						</resource>
						<resource>
							<directory>${pom.basedir}/src/main/webapp/WEB-INF</directory>
							<targetPath>WEB-INF</targetPath>
							<filtering>true</filtering>
							<includes>
								<include>*.xml</include>								
							</includes>
						</resource>
					</webResources>
				</configuration>
			</plugin>
		</plugins>
	</build>
</project>
