<?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 Integration Service (Webservice, Messaging, ...) 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.6</version>
		<relativePath>../../pom.xml</relativePath>
	</parent>

	<modelVersion>4.0.0</modelVersion>
	<artifactId>HsaTools-Search-composite-svc</artifactId>
	<packaging>jar</packaging>

	<name>HsaTools-Search-composite-svc</name>
	<description>HsaTools-Search-composite-svc</description>

	<dependencies>
		<dependency>
			<groupId>${project.groupId}</groupId>
			<artifactId>HsaTools-Search-composite-types </artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-web</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework</groupId>
			<artifactId>spring-context-support</artifactId>
		</dependency>

		<dependency>
			<groupId>org.springframework.ldap</groupId>
			<artifactId>spring-ldap-core</artifactId>
		</dependency>

		<dependency>
			<groupId>quartz</groupId>
			<artifactId>quartz</artifactId>
		</dependency>

		<dependency>
			<groupId>commons-io</groupId>
			<artifactId>commons-io</artifactId>
		</dependency>

		<dependency>
			<groupId>commons-logging</groupId>
			<artifactId>commons-logging</artifactId>
		</dependency>

		<dependency>
			<groupId>commons-httpclient</groupId>
			<artifactId>commons-httpclient</artifactId>
		</dependency>

		<dependency>
			<groupId>com.thoughtworks.xstream</groupId>
			<artifactId>xstream</artifactId>
			<version>1.3.1</version>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<resources>
			<resource>
				<directory>src/main/resources</directory>
				<includes>
					<include>services-config.xml</include>
				</includes>
				<filtering>true</filtering>
			</resource>

			<resource>
				<directory>src/main/resources</directory>
				<excludes>
					<exclude>services-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>
				<executions>
					<execution>
						<id>1</id>
						<goals>
							<goal>wsimport</goal>
						</goals>
						<configuration>
							<wsdlDirectory>${basedir}/../schema/src/main/resources/wsdl/</wsdlDirectory>
							<wsdlLocation>https://vardval.vgregion.se/VardvalService_Mex/VGRegion.VGPrimarvard.Vardval.Service.wsdl</wsdlLocation>
							<wsdlFiles>
								<wsdlFile>VardvalService_1.wsdl</wsdlFile>
							</wsdlFiles>
							<packageName>se.vgregion.kivtools.search.svc.ws.domain.vardval</packageName>
							<extension>true</extension>
							<sourceDestDir>${project.build.directory}/generated-sources/jaxws</sourceDestDir>
							<staleFile>${project.build.directory}/generated-sources/jaxws/stale/.staleFlagVardval</staleFile>
						</configuration>
					</execution>

					<!--  Signicat 
					<execution>
						<id>2</id>
						<goals>
							<goal>wsimport</goal>
						</goals>
						<configuration>
							<wsdlUrls>
								<wsdlUrl>https://id.signicat.com/signatureservice/services/signatureservice?wsdl</wsdlUrl>
							</wsdlUrls>
							<packageName>se.vgregion.kivtools.search.svc.ws.signicat.signature</packageName>
							<sourceDestDir>${project.build.directory}/generated-sources/jaxws</sourceDestDir>
							<staleFile>${project.build.directory}/generated-sources/jaxws/stale/.staleFlagSignicat</staleFile>
						</configuration>
					</execution>-->

					<!-- KIVWS -->
					<execution>
						<id>4</id>
						<goals>
							<goal>wsimport</goal>
						</goals>
						<configuration>
							<wsdlDirectory>${basedir}/../schema/src/main/resources/wsdl/</wsdlDirectory>
							<wsdlLocation>https://kivws.vgregion.se:10020/services?wsdl</wsdlLocation>
							<wsdlFiles>
								<wsdlFile>kivws.wsdl</wsdlFile>
							</wsdlFiles>
							<packageName>se.vgregion.kivtools.search.svc.ws.domain.kivws</packageName>
							<extension>true</extension>
							<sourceDestDir>${project.build.directory}/generated-sources/jaxws</sourceDestDir>
							<staleFile>${project.build.directory}/generated-sources/jaxws/stale/.staleFlagKivws</staleFile>
						</configuration>
					</execution>
				</executions>
			</plugin>

			<plugin>
				<groupId>org.codehaus.mojo</groupId>
				<artifactId>jaxb2-maven-plugin</artifactId>
				<version>1.3</version>
				<executions>
					<execution>
						<id>sitemap</id>
						<goals>
							<goal>xjc</goal>
						</goals>
						<configuration>
							<packageName>org.sitemap</packageName>
							<schemaDirectory>${basedir}/../../../Search/composites/schema/src/main/resources/wsdl/</schemaDirectory>
							<schemaFiles>sitemap.xsd</schemaFiles>
							<staleFile>${project.build.directory}/generated-sources/jaxb/.staleFlagSitemap</staleFile>
						</configuration>
					</execution>
					<execution>
						<id>internal_sitemap</id>
						<goals>
							<goal>xjc</goal>
						</goals>
						<configuration>
							<packageName>se.vgregion.kivtools.svc.sitemap</packageName>
							<schemaDirectory>${basedir}/../../../Search/composites/schema/src/main/resources/wsdl/</schemaDirectory>
							<schemaFiles>internal_sitemap.xsd</schemaFiles>
							<staleFile>${project.build.directory}/generated-sources/jaxb-internal-sitemap/.staleFlagInternalSitemap</staleFile>
							<outputDirectory>target/generated-sources/jaxb-internal-sitemap</outputDirectory>
						</configuration>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
