<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/xsd/maven-4.0.0.xsd">
	<modelVersion>4.0.0</modelVersion>

	<parent>
		<groupId>ca.uhn.hapi.fhir</groupId>
		<artifactId>hapi-deployable-pom</artifactId>
		<version>0.9-SNAPSHOT</version>
		<relativePath>../hapi-deployable-pom/pom.xml</relativePath>
	</parent>

	<artifactId>hapi-fhir-structures-dstu</artifactId>
	<packaging>jar</packaging>

	<name>HAPI FHIR Structures - DSTU1 (FHIR v0.80)</name>

	<dependencies>
		<dependency>
			<groupId>ca.uhn.hapi.fhir</groupId>
			<artifactId>hapi-fhir-base</artifactId>
			<version>0.9-SNAPSHOT</version>
		</dependency>
		
		<dependency>
			<groupId>javax.servlet</groupId>
			<artifactId>javax.servlet-api</artifactId>
			<version>${servlet_api_version}</version>
			<scope>provided</scope>
		</dependency>
		
		<!-- Testing -->
		<dependency>
			<groupId>junit</groupId>
			<artifactId>junit</artifactId>
			<version>${junit_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>xmlunit</groupId>
			<artifactId>xmlunit</artifactId>
			<version>1.5</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-servlets</artifactId>
			<version>${jetty_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-servlet</artifactId>
			<version>${jetty_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-server</artifactId>
			<version>${jetty_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-servlet</artifactId>
			<version>${jetty_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-util</artifactId>
			<version>${jetty_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.eclipse.jetty</groupId>
			<artifactId>jetty-webapp</artifactId>
			<version>${jetty_version}</version>
			<scope>test</scope>
		</dependency>
        <dependency>
            <groupId>org.eclipse.jetty</groupId>
            <artifactId>jetty-http</artifactId>
			<version>${jetty_version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
			<groupId>ch.qos.logback</groupId>
			<artifactId>logback-classic</artifactId>
			<version>${logback_version}</version>
			<optional>true</optional>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.ebaysf.web</groupId>
			<artifactId>cors-filter</artifactId>
			<version>${ebay_cors_filter_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.thymeleaf</groupId>
			<artifactId>thymeleaf</artifactId>
			<version>${thymeleaf-version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
		    <groupId>com.phloc</groupId>
		    <artifactId>phloc-schematron</artifactId>
		    <version>${phloc_schematron_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
		    <groupId>com.phloc</groupId>
		    <artifactId>phloc-commons</artifactId>
		    <version>${phloc_commons_version}</version>
			<scope>test</scope>
		</dependency>
        

		<!-- UNIT TEST DEPENDENCIES -->
		<dependency>
			<groupId>org.mockito</groupId>
			<artifactId>mockito-all</artifactId>
			<version>1.9.5</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>net.sf.json-lib</groupId>
			<artifactId>json-lib</artifactId>
			<version>2.4</version>
			<classifier>jdk15</classifier>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<artifactId>commons-logging</artifactId>
					<groupId>commons-logging</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>net.sf.json-lib</groupId>
			<artifactId>json-lib</artifactId>
			<version>2.4</version>
			<classifier>jdk15-sources</classifier>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>directory-naming</groupId>
			<artifactId>naming-java</artifactId>
			<version>0.8</version>
			<scope>test</scope>
			<exclusions>
				<exclusion>
					<artifactId>commons-logging</artifactId>
					<groupId>commons-logging</groupId>
				</exclusion>
			</exclusions>
		</dependency>
		<dependency>
			<groupId>org.hamcrest</groupId>
			<artifactId>java-hamcrest</artifactId>
			<version>${hamcrest_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>com.google.guava</groupId>
			<artifactId>guava</artifactId>
			<version>${guava_version}</version>
			<scope>test</scope>
		</dependency>
		<!-- 
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-web</artifactId>
			<version>${spring_security_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>org.springframework.security</groupId>
			<artifactId>spring-security-config</artifactId>
			<version>${spring_security_version}</version>
			<scope>test</scope>
		</dependency>
		<dependency>
		    <groupId>org.springframework.security</groupId>
		    <artifactId>spring-security-jwt</artifactId>
		    <version>1.0.2.RELEASE</version>
			<scope>test</scope>
		</dependency>
		-->		
		
	</dependencies>

	<build>
		<plugins>
			<plugin>
				<groupId>ca.uhn.hapi.fhir</groupId>
				<artifactId>hapi-tinder-plugin</artifactId>
				<version>0.9-SNAPSHOT</version>
				<executions>
					<execution>
						<goals>
							<goal>generate-structures</goal>
						</goals>
					</execution>
				</executions>
				<configuration>
					<package>ca.uhn.fhir.model.dstu</package>
					<baseResourceNames>
						<baseResourceName>adversereaction</baseResourceName>
						<baseResourceName>alert</baseResourceName>
						<baseResourceName>allergyintolerance</baseResourceName>
						<baseResourceName>appointmentresponse</baseResourceName>
						<baseResourceName>appointment</baseResourceName>
						<baseResourceName>availability</baseResourceName>
						<baseResourceName>careplan</baseResourceName>
						<baseResourceName>claim</baseResourceName>  
						<baseResourceName>composition</baseResourceName>
						<baseResourceName>conceptmap</baseResourceName>
						<baseResourceName>condition</baseResourceName>
						<baseResourceName>conformance</baseResourceName>
						<baseResourceName>coverage</baseResourceName>
						<baseResourceName>deviceobservationreport</baseResourceName>
						<baseResourceName>device</baseResourceName>
						<baseResourceName>diagnosticorder</baseResourceName>
						<baseResourceName>diagnosticreport</baseResourceName>
						<baseResourceName>documentmanifest</baseResourceName>
						<baseResourceName>documentreference</baseResourceName>
						<baseResourceName>encounter</baseResourceName>
						<baseResourceName>familyhistory</baseResourceName>
						<baseResourceName>geneexpression</baseResourceName>
						<baseResourceName>geneticanalysis</baseResourceName>
						<baseResourceName>group</baseResourceName>
						<baseResourceName>gvfmeta</baseResourceName>
						<baseResourceName>gvfvariant</baseResourceName>
						<baseResourceName>imagingstudy</baseResourceName>
						<baseResourceName>immunizationrecommendation</baseResourceName>
						<baseResourceName>immunization</baseResourceName>
						<baseResourceName>list</baseResourceName>
						<baseResourceName>location</baseResourceName>
						<baseResourceName>media</baseResourceName>
						<baseResourceName>medicationadministration</baseResourceName>
						<baseResourceName>medicationdispense</baseResourceName>
						<baseResourceName>medicationprescription</baseResourceName>
						<baseResourceName>medication</baseResourceName>
						<baseResourceName>medicationstatement</baseResourceName>
						<baseResourceName>messageheader</baseResourceName>
						<baseResourceName>microarray</baseResourceName>
						<baseResourceName>observation</baseResourceName>
						<baseResourceName>operationoutcome</baseResourceName>
						<baseResourceName>orderresponse</baseResourceName>
						<baseResourceName>order</baseResourceName>
						<baseResourceName>organization</baseResourceName>
						<baseResourceName>other</baseResourceName>
						<baseResourceName>patient</baseResourceName>
						<baseResourceName>practitioner</baseResourceName>
						<baseResourceName>procedure</baseResourceName>
						<baseResourceName>profile</baseResourceName>
						<baseResourceName>provenance</baseResourceName>
						<baseResourceName>query</baseResourceName>
						<baseResourceName>questionnaire</baseResourceName>
						<baseResourceName>relatedperson</baseResourceName>
						<baseResourceName>remittance</baseResourceName>
						<baseResourceName>securityevent</baseResourceName>
						<baseResourceName>sequencinganalysis</baseResourceName>
						<baseResourceName>sequencinglab</baseResourceName>
						<baseResourceName>slot</baseResourceName>
						<baseResourceName>specimen</baseResourceName>
						<baseResourceName>substance</baseResourceName>
						<baseResourceName>supply</baseResourceName>
						<baseResourceName>user</baseResourceName>
						<baseResourceName>valueset</baseResourceName>
					</baseResourceNames>
					<buildDatatypes>true</buildDatatypes>
				</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.0</version>
					<configuration>
						<lifecycleMappingMetadata>
							<pluginExecutions>
								<pluginExecution>
									<pluginExecutionFilter>
										<groupId>ca.uhn.hapi.fhir</groupId>
										<artifactId>hapi-tinder-plugin</artifactId>
										<versionRange>[0.4-SNAPSHOT,)</versionRange>
										<goals>
											<goal>generate-structures</goal>
										</goals>
									</pluginExecutionFilter>
									<action>
										<ignore></ignore>
									</action>
								</pluginExecution>
							</pluginExecutions>
						</lifecycleMappingMetadata>
					</configuration>
				</plugin>
			</plugins>
		</pluginManagement>
		<resources>
			<resource>
				<directory>${basedir}/src/main/resources</directory>
			</resource>
			<resource>
				<directory>${basedir}/target/generated-resources/tinder</directory>
			</resource>
		</resources>
	</build>

</project>
