<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>
		<artifactId>documentsharing</artifactId>
		<groupId>dk.nsi.documentsharing</groupId>
		<version>0.9.8</version>
		<relativePath>../../..</relativePath>
	</parent>

	<artifactId>documentsharing-provider</artifactId>
	<name>Document Sharing Provider</name>
	<packaging>jar</packaging>
	<url>http://nsi.dk</url>

	<dependencies>
		<dependency>
			<groupId>javax</groupId>
			<artifactId>javaee-api</artifactId>
			<version>6.0</version>
			<scope>provided</scope>
		</dependency>
		<dependency>
			<groupId>dk.nsi.documentsharing</groupId>
			<artifactId>core</artifactId>
			<version>0.9.8</version>
		</dependency>

		<dependency>
			<groupId>dk.nsi.documentsharing</groupId>
			<artifactId>nationalprofile</artifactId>
			<version>0.9.8</version>
		</dependency>
		<dependency>
			<groupId>dk.nsi.documentsharing</groupId>
			<artifactId>util</artifactId>
			<version>0.9.8</version>
		</dependency>
		<dependency>
			<groupId>dk.nsi.ddsservices</groupId>
			<artifactId>ddsservices-types</artifactId>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
		</dependency>
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.jvnet.jaxb2_commons</groupId>
			<artifactId>jaxb2-basics-runtime</artifactId>
			<version>0.6.2</version>
		</dependency>
		<dependency>
			<groupId>org.easymock</groupId>
			<artifactId>easymock</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<artifactId>hsuid</artifactId>
			<groupId>dk.nsi.hsuid</groupId>
		</dependency>
		<dependency>
			<groupId>dk.nsi.documentsharing</groupId>
			<artifactId>xdstransformation</artifactId>
			<version>0.9.8</version>
		</dependency>
		<dependency>
			<groupId>log4j</groupId>
			<artifactId>log4j</artifactId>
		</dependency>
		<dependency>
			<groupId>dk.nsi.documentsharing</groupId>
			<artifactId>docsharingservices</artifactId>
			<version>0.9.8</version>
		</dependency>
	</dependencies>

	<build>
		<finalName>documentsharing-provider</finalName>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-deploy-plugin</artifactId>
				<version>2.7</version>
				<executions>
					<execution>
						<id>deploy-file</id>
						<phase>deploy</phase>
						<goals>
							<goal>deploy-file</goal>
						</goals>
						<configuration>
							<file>${project.build.directory}/${project.artifactId}.jar</file>
							<pomFile>pom.xml</pomFile>
							<url>${deploy.repository.url}</url>
							<repositoryId>${deploy.repository.id}</repositoryId>
						</configuration>
					</execution>
				</executions>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>
			<!-- plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>build-helper-maven-plugin</artifactId> 
				<version>1.5</version> <executions> <execution> <id>add-source</id> <phase>generate-sources</phase> 
				<goals> <goal>add-source</goal> </goals> <configuration> <sources> <source>${project.build.directory}/generated-sources/jaxws</source> 
				<source>${project.build.directory}/generated-sources/jaxb</source> </sources> 
				</configuration> </execution> </executions> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> 
				<artifactId>jaxws-maven-plugin</artifactId> <version>1.12</version> --><!-- gives us wsimport tools from JAX-WS RI 2.1.7, so don't change this 
				without upgrading JAX-WS too -->
			<!-- <executions> <execution> <phase>generate-sources</phase> <goals> 
				<goal>wsimport</goal> </goals> <configuration> <wsdlDirectory>${basedir}/src/main/resources/wsdl</wsdlDirectory> 
				<wsdlFiles> <wsdlFile>XDS.b_DocumentRepository.wsdl</wsdlFile> </wsdlFiles> 
				<sourceDestDir>${project.build.directory}/generated-sources/jaxws</sourceDestDir> 
				<args> <arg>-extension</arg> <arg>-Xendorsed</arg> <arg>-XadditionalHeaders</arg> 
				</args> </configuration> </execution> </executions> </plugin> -->
			<!-- Both jaxb and jaxws generates java files based on xsd-files in xsd/. 
				The clean target below removes schema files generated by jaxws so we only 
				use those created by jaxb. The reason why it is nessecary is, that some of 
				the schema files refer to each other, but not all of them are part of the 
				web service and so jaxws will not generate anything based on them. -->
			<!-- <plugin> <artifactId>maven-clean-plugin</artifactId> <version>2.4.1</version> 
				<executions> <execution> <phase>generate-sources</phase> <goals> <goal>clean</goal> 
				</goals> <configuration> <excludeDefaultDirectories>true</excludeDefaultDirectories> 
				<filesets> <fileset> <directory>${project.build.directory}/generated-sources/jaxws</directory> 
				<includes> <include>**/ebxml_regrep/**/*.java</include> <include>dk/medcom/**/*.java</include> 
				<include>dk/nsi/hsuid/**/*.java</include> </includes> <excludes> <exclude>ihe/**/*.java</exclude> 
				<exclude>dk/medcom/**/DGWSFault.java</exclude> </excludes> <followSymlinks>false</followSymlinks> 
				</fileset> </filesets> </configuration> </execution> </executions> </plugin> 
				<plugin> <groupId>org.jvnet.jaxb2.maven2</groupId> <artifactId>maven-jaxb2-plugin</artifactId> 
				<version>0.8.0</version> <executions> <execution> <id>generate-XDS-schema</id> 
				<configuration> <schemaDirectory>${basedir}/src/main/resources/schema</schemaDirectory> 
				<generateDirectory>${project.build.directory}/generated-sources/jaxb</generateDirectory> 
				<schemaIncludes> <include>**/*.xsd</include> </schemaIncludes> <schemaExcludes> 
				<exclude>IHE/XDS.b_DocumentRepository.xsd</exclude> </schemaExcludes> <plugins> 
				<plugin> <groupId>org.jvnet.jaxb2_commons</groupId> <artifactId>jaxb2-basics</artifactId> 
				<version>0.6.2</version> </plugin> </plugins> <args> <arg>-XtoString</arg> 
				<arg>-Xequals</arg> <arg>-XhashCode</arg> <arg>-Xcopyable</arg> </args> <extension>true</extension> 
				</configuration> <goals> <goal>generate</goal> </goals> </execution> </executions> 
				</plugin> -->
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<executions>
					<execution>
						<phase>package</phase>
						<goals>
							<goal>test-jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
		</plugins>
	</build>
</project>
