<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>consentservice</artifactId>
		<groupId>dk.nsi.consentservices</groupId>
		<version>1.3.5</version>
	</parent>
	<artifactId>consentservices-ws-elements</artifactId>

	<properties>
		<environment-property-file>${basedir}/../environment.properties</environment-property-file>
		<installation-package-folder>${project.build.directory}/installation-package</installation-package-folder>
		<services-common-remote-test>dk.nsi.services-common:remote-test-resources:${services-common.version}</services-common-remote-test>
		<dgws-remote-test>dk.nsi.dgws:remote-test-resources:1.1.12</dgws-remote-test>
	</properties>

	<dependencies>
		<dependency>
			<groupId>dk.nsi.dgws.types</groupId>
			<artifactId>medcom-types</artifactId>
		</dependency>
		<dependency>
			<groupId>dk.nsi.dgws.types</groupId>
			<artifactId>security-types</artifactId>
		</dependency>
		<dependency>
			<groupId>dk.nsi.hsuid</groupId>
			<artifactId>hsuid</artifactId>
		</dependency>
		<dependency>
			<groupId>dk.nsi.services-common</groupId>
			<artifactId>services-common</artifactId>
		</dependency>
		<dependency>
			<groupId>dk.nsi.dgws</groupId>
			<artifactId>remote-test-resources</artifactId>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>dk.nsi.services-common</groupId>
			<artifactId>remote-test-resources</artifactId>
			<scope>test</scope>
		</dependency>
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-jar-plugin</artifactId>
				<version>2.2</version>
				<executions>
					<execution>
						<goals>
							<goal>test-jar</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-remote-resources-plugin</artifactId>
				<version>1.5</version>
				<executions>
					<execution>
						<phase>initialize</phase>
						<goals>
							<goal>bundle</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
					<resourcesDirectory>${basedir}/src/test/resources</resourcesDirectory>
					<includes>
						<include>**/*.sql</include>
					</includes>
				</configuration>
			</plugin>
		</plugins>
		<pluginManagement>
			<plugins>
				<!--This plugin's configuration is used to store Eclipse m2e settings 
					only. It has no influence on the Maven build itself. -->
				<plugin>
					<groupId>org.eclipse.m2e</groupId>
					<artifactId>lifecycle-mapping</artifactId>
					<version>1.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>org.apache.maven.plugins</groupId>
										<artifactId>maven-clean-plugin</artifactId>
										<versionRange>[2.4.1,)</versionRange>
										<goals>
											<goal>clean</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<execute />
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
	</build>

	<profiles>
		<profile>
			<id>deploy-ds-appserver</id>
			<build>
				<plugins>
					<plugin>
						<groupId>org.codehaus.mojo</groupId>
						<artifactId>properties-maven-plugin</artifactId>
						<version>1.0-alpha-2</version>
						<executions>
							<execution>
								<phase>initialize</phase>
								<goals>
									<goal>read-project-properties</goal>
								</goals>
								<configuration>
									<files>
										<file>${environment-property-file}</file>
									</files>
								</configuration>
							</execution>
						</executions>
					</plugin>
					<plugin>
						<groupId>org.apache.maven.plugins</groupId>
						<artifactId>maven-remote-resources-plugin</artifactId>
						<version>1.5</version>
						<configuration>
							<outputDirectory>${project.build.directory}/maven-shared-archive-resources</outputDirectory>
							<resourceBundles>
								<resourceBundle>${dgws-remote-test}</resourceBundle>
								<resourceBundle>${services-common-remote-test}</resourceBundle>
							</resourceBundles>
						</configuration>
						<executions>
							<execution>
								<phase>initialize</phase>
								<goals>
									<goal>process</goal>
								</goals>
							</execution>
						</executions>
					</plugin>
				</plugins>
			</build>
		</profile>
	</profiles>
</project>
