<?xml version="1.0"?>
<!--

    Copyright 2009 Västra Götalandsregionen
    
      This library is free software; you can redistribute it and/or modify
      it under the terms of version 2.1 of the GNU Lesser General Public
      License as published by the Free Software Foundation.
    
      This library is distributed in the hope that it will be useful,
      but WITHOUT ANY WARRANTY; without even the implied warranty of
      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      GNU Lesser General Public License for more details.
    
      You should have received a copy of the GNU Lesser General Public
      License along with this library; if not, write to the
      Free Software Foundation, Inc., 59 Temple Place, Suite 330,
      Boston, MA 02111-1307  USA

-->

	<!--
		This is the web composite Maven POM. Template version: 1.0-SNAPSHOT
		Generation time : 2007-10-09 10:07:02 CEST
	-->
<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>
		<groupId>se.vgregion.HsaTools</groupId>
		<artifactId>HsaTools-Search</artifactId>
		<version>1.3.5</version>
		<relativePath>../../pom.xml</relativePath>
	</parent>

	<modelVersion>4.0.0</modelVersion>
	<artifactId>HsaTools-Search-composite-webcomp</artifactId>
	<packaging>jar</packaging>
	<name>HsaTools-Search-composite-webcomp</name>

	<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<includes>
					<include>services-config.xml</include>
					<include>webflow-config.xml</include>
				</includes>
				<filtering>true</filtering>
			</resource>
			<resource>
				<directory>src/main/resources</directory>
				<excludes>
					<exclude>services-config.xml</exclude>
					<exclude>webflow-config.xml</exclude>
				</excludes>
				<filtering>false</filtering>
			</resource>
		</resources>

		<plugins>
			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jaxws-maven-plugin</artifactId>
				<version>1.12</version>
				<!-- Dependency fixes m2eclipse issues -->
				<dependencies>
					<dependency>
						<groupId>xerces</groupId>
						<artifactId>xercesImpl</artifactId>
						<version>2.9.1</version>
					</dependency>
				</dependencies>
				<configuration>
					<wsdlDirectory>${basedir}/../schema/src/main/resources/wsdl/</wsdlDirectory>
				</configuration>
				<executions>
					<execution>
						<id>SMS</id>
						<goals>
							<goal>wsimport</goal>
						</goals>
						<configuration>
							<wsdlLocation>http://linawebservices.lthalland.se/SMSRedirect.asmx?WSDL</wsdlLocation>
							<wsdlFiles>
								<wsdlFile>Netwise_SMSRedirect_HAK.wsdl</wsdlFile>
							</wsdlFiles>
							<packageName>se.vgregion.kivtools.search.ws.domain.hak.netwise.sms</packageName>
							<extension>true</extension>
                            <sourceDestDir>${project.build.directory}/generated-sources/jaxws</sourceDestDir>
							<staleFile>${project.build.directory}/jaxws/stale/.staleFlagSMS</staleFile>
						</configuration>
					</execution>
					<execution>
						<id>UserEvent</id>
						<goals>
							<goal>wsimport</goal>
						</goals>
						<configuration>
							<wsdlLocation>http://linawebservices.lthalland.se/UserEvent.asmx?WSDL</wsdlLocation>
							<wsdlFiles>
								<wsdlFile>Netwise_UserEvent_HAK.wsdl</wsdlFile>
							</wsdlFiles>
							<packageName>se.vgregion.kivtools.search.ws.domain.hak.netwise.event</packageName>
							<extension>true</extension>
                            <sourceDestDir>${project.build.directory}/generated-sources/jaxws</sourceDestDir>
							<staleFile>${project.build.directory}/jaxws/stale/.staleFlagUserEvent</staleFile>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>

	<dependencies>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>HsaTools-Search-composite-svc</artifactId>
		</dependency>

		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>HsaTools-Search-composite-types</artifactId>
		</dependency>

		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>servlet-api</artifactId>
		</dependency>
		
		<dependency>
			<groupId>org.springframework.webflow</groupId>
			<artifactId>spring-webflow</artifactId>
		</dependency>
		
		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-test</artifactId>
		</dependency>
	</dependencies>
</project>
