2017-02-04 16:31:18 -05:00
<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" >
2014-03-03 18:22:14 -05:00
<modelVersion > 4.0.0</modelVersion>
<parent >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir</artifactId>
2018-11-12 10:07:28 -05:00
<version > 3.7.0-SNAPSHOT</version>
2014-03-03 18:22:14 -05:00
<relativePath > ../pom.xml</relativePath>
</parent>
<artifactId > hapi-tinder-test</artifactId>
<packaging > jar</packaging>
<name > HAPI Tinder Plugin - Test Project</name>
<dependencies >
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-base</artifactId>
2017-01-29 13:22:28 -05:00
<version > ${project.version}</version>
2014-03-03 18:22:14 -05:00
</dependency>
2016-12-06 14:26:24 -05:00
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu2</artifactId>
2017-01-29 13:22:28 -05:00
<version > ${project.version}</version>
</dependency>
2017-02-04 16:31:18 -05:00
<!-- Because Tinder is a part of the HAPI FHIR build process (it generates a bunch of the actual HAPI structure code), but also uses HAPI FHIR in order to run (e.g. to load ValueSet resources), we keep
the dependencies for the structures a version behind the main library. This is weird, but it works. -->
2017-01-29 13:22:28 -05:00
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu2.1</artifactId>
<version > ${project.version}</version>
<exclusions >
<exclusion >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-base</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu3</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-hl7org-dstu2</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-validation-resources-dstu2</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-validation-resources-dstu3</artifactId>
<version > ${project.version}</version>
2016-12-06 14:26:24 -05:00
</dependency>
2014-03-17 15:52:41 -04:00
<dependency >
<groupId > junit</groupId>
<artifactId > junit</artifactId>
<scope > test</scope>
</dependency>
2014-03-24 08:32:28 -04:00
2014-03-03 18:22:14 -05:00
</dependencies>
<build >
<plugins >
2017-02-04 16:31:18 -05:00
<!-- <plugin> <groupId>ca.uhn.hapi.fhir</groupId> <artifactId>hapi - tinder - plugin</artifactId> <version>1.0 - SNAPSHOT</version> <executions> <execution> <id>structs</id> <goals> <goal>generate - structures</goal>
</goals> <configuration > <package > ca.uhn.tindertest</package> <baseResourceNames > <baseResourceName > patient</baseResourceName> <baseResourceName > valueset</baseResourceName> <baseResourceName > organization</baseResourceName>
<baseResourceName > device</baseResourceName> <baseResourceName > location</baseResourceName> <baseResourceName > practitioner</baseResourceName> </baseResourceNames> </configuration> </execution> <execution >
<id > client</id> <goals > <goal > generate-client</goal> </goals> <configuration > <clientClassName > ca.uhn.hitest.HiTest</clientClassName> <serverBaseHref > http://fhir.healthintersections.com.au/open</serverBaseHref>
<generateSearchForAllParams > true</generateSearchForAllParams> </configuration> </execution> </executions> </plugin> -->
2014-03-24 08:32:28 -04:00
2014-03-13 17:33:12 -04:00
<plugin >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-tinder-plugin</artifactId>
2017-01-29 13:22:28 -05:00
<version > ${project.version}</version>
<dependencies >
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-base</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu2</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu2.1</artifactId>
<version > ${project.version}</version>
<exclusions >
<exclusion >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-base</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu3</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-hl7org-dstu2</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-validation-resources-dstu2</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-validation-resources-dstu3</artifactId>
<version > ${project.version}</version>
</dependency>
</dependencies>
2014-03-13 17:33:12 -04:00
<executions >
2017-08-13 14:39:47 -04:00
<!--
2014-03-13 17:33:12 -04:00
<execution >
<id > custom-structs</id>
<goals >
<goal > generate-structures</goal>
</goals>
<configuration >
<package > ca.uhn.test.customstructs</package>
2014-03-17 15:52:41 -04:00
<profileHttpBase > http://foo</profileHttpBase>
2014-10-24 15:43:35 -04:00
<version > dstu</version>
2014-03-13 17:33:12 -04:00
<resourceProfileFiles >
2014-03-17 15:52:41 -04:00
<resourceProfileFile >
<profileFile > ${project.basedir}/src/test/resources/profile/patient.xml</profileFile>
<profileSourceUrl > http://foo1</profileSourceUrl>
</resourceProfileFile>
<resourceProfileFile >
<profileFile > ${project.basedir}/src/test/resources/profile/organization.xml</profileFile>
<profileSourceUrl > http://foo1</profileSourceUrl>
</resourceProfileFile>
2014-03-13 17:33:12 -04:00
</resourceProfileFiles>
<resourceValueSetFiles >
2014-03-17 15:52:41 -04:00
<resourceValueSetFile >
<valueSetFile > ${project.basedir}/src/test/resources/valueset/valueset-cgta-patientidpool.xml</valueSetFile>
</resourceValueSetFile>
<resourceValueSetFile >
<valueSetFile > ${project.basedir}/src/test/resources/valueset/valueset-cgta-provideridpool.xml</valueSetFile>
</resourceValueSetFile>
2014-03-13 17:33:12 -04:00
</resourceValueSetFiles>
</configuration>
</execution>
2017-08-13 14:39:47 -04:00
-->
2014-03-13 17:33:12 -04:00
<execution >
<id > generalstructs</id>
<goals >
<goal > generate-structures</goal>
</goals>
<configuration >
<package > ca.uhn.test.realstructs</package>
2017-08-13 14:39:47 -04:00
<version > dstu2</version>
2014-03-13 17:33:12 -04:00
<baseResourceNames >
<baseResourceName > patient</baseResourceName>
<baseResourceName > valueset</baseResourceName>
<baseResourceName > organization</baseResourceName>
<baseResourceName > device</baseResourceName>
<baseResourceName > location</baseResourceName>
<baseResourceName > practitioner</baseResourceName>
2014-08-27 12:01:46 -04:00
<baseResourceName > list</baseResourceName>
2017-08-13 14:39:47 -04:00
<baseResourceName > auditevent</baseResourceName>
2014-03-13 17:33:12 -04:00
</baseResourceNames>
<buildDatatypes > true</buildDatatypes>
</configuration>
</execution>
2016-03-24 13:34:54 -04:00
<execution >
<id > generic_multi</id>
<goals >
<goal > generate-multi-files</goal>
</goals>
<configuration >
2017-08-13 14:39:47 -04:00
<version > dstu2</version>
2016-12-06 14:26:24 -05:00
<generateResources > true</generateResources>
2016-03-24 13:34:54 -04:00
<templateFile > ${project.basedir}/src/test/resources/templates/resource_test.vm</templateFile>
2016-12-06 14:26:24 -05:00
<targetSourceDirectory > ${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
<targetPackage > ca.uhn.test.generic.multi</targetPackage>
2016-03-24 13:34:54 -04:00
<filenameSuffix > ResourceTest.java</filenameSuffix>
2016-12-06 14:26:24 -05:00
<includeResources >
<includeResource > patient</includeResource>
<includeResource > organization</includeResource>
</includeResources>
</configuration>
</execution>
<execution >
<id > generic_multi_json</id>
<goals >
<goal > generate-multi-files</goal>
</goals>
<configuration >
<version > dstu2</version>
<generateResources > true</generateResources>
<templateFile > ${project.basedir}/src/test/resources/templates/resource_map.vm</templateFile>
<velocityPath > ${project.basedir}/src/test/resources/macros</velocityPath>
<targetResourceDirectory > ${project.build.directory}/generated-resources/tinder</targetResourceDirectory>
<targetFolder > maps</targetFolder>
<filenameSuffix > _Map.json</filenameSuffix>
<includeResources >
<includeResource > patient</includeResource>
<includeResource > organization</includeResource>
2016-12-09 20:04:01 -05:00
<includeResource > bundle</includeResource>
<includeResource > composition</includeResource>
2016-12-06 14:26:24 -05:00
</includeResources>
2016-03-24 13:34:54 -04:00
</configuration>
</execution>
<execution >
<id > generic_single</id>
<goals >
<goal > generate-single-file</goal>
</goals>
<configuration >
2017-08-13 14:39:47 -04:00
<version > dstu2</version>
2016-12-06 14:26:24 -05:00
<generateResources > true</generateResources>
2016-03-24 13:34:54 -04:00
<templateFile > ${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm</templateFile>
2016-12-06 14:26:24 -05:00
<targetSourceDirectory > ${project.build.directory}/generated-sources/tinder</targetSourceDirectory>
2016-03-24 13:34:54 -04:00
<targetPackage > ca.uhn.test.generic.single</targetPackage>
2016-12-06 14:26:24 -05:00
<packageBase > ca.uhn.test.generic.multi</packageBase>
2017-08-13 14:39:47 -04:00
<targetFile > TestConfigDstu2.java</targetFile>
2016-12-06 14:26:24 -05:00
<includeResources >
<includeResource > patient</includeResource>
<includeResource > organization</includeResource>
</includeResources>
</configuration>
</execution>
<execution >
<id > generic_single_json</id>
<goals >
<goal > generate-single-file</goal>
</goals>
<configuration >
<version > dstu2</version>
<generateDatatypes > true</generateDatatypes>
<templateFile > ${project.basedir}/src/test/resources/templates/composite_map.vm</templateFile>
<velocityPath > ${project.basedir}/src/test/resources/macros</velocityPath>
<targetResourceDirectory > ${project.build.directory}/generated-resources/tinder</targetResourceDirectory>
<targetFolder > maps</targetFolder>
<targetFile > Datatypes_Dstu2.json</targetFile>
<includeResources >
<includeResource > patient</includeResource>
<includeResource > organization</includeResource>
</includeResources>
2016-03-24 13:34:54 -04:00
</configuration>
</execution>
2017-02-04 16:31:18 -05:00
<!-- <execution> <id>client</id> <goals> <goal>generate - client</goal> </goals> <configuration> <clientClassName>ca.uhn.hitest.HiTest</clientClassName> <serverBaseHref>http://fhir.healthintersections.com.au/open</serverBaseHref>
<generateSearchForAllParams > true</generateSearchForAllParams> </configuration> </execution> -->
2017-01-29 13:22:28 -05:00
</executions>
</plugin>
<plugin >
<artifactId > maven-antrun-plugin</artifactId>
<executions >
<execution >
<id > testTinderTask</id>
<phase > generate-sources</phase>
<goals >
<goal > run</goal>
</goals>
<configuration >
<target >
2017-02-04 16:31:18 -05:00
<taskdef name= "hapi-tinder" classname= "ca.uhn.fhir.tinder.ant.TinderGeneratorTask" classpathref= "maven.plugin.classpath" />
2017-01-29 13:22:28 -05:00
2017-02-04 16:31:18 -05:00
<hapi-tinder templateFile= "${project.basedir}/src/test/resources/templates/resource_test.vm" generateResources= "true" targetSourceDirectory= "${project.build.directory}/generated-sources/tinder"
targetPackage="ca.uhn.test.ant.multi" filenameSuffix="ResourceTest.java" projectHome="${project.basedir}/.." version="dstu2" includeResources="patient,organization" />
2017-01-29 13:22:28 -05:00
2017-02-04 16:31:18 -05:00
<hapi-tinder templateFile= "${project.basedir}/src/test/resources/templates/resource_test_beans_java.vm" generateResources= "true" targetSourceDirectory= "${project.build.directory}/generated-sources/tinder"
targetFile="TestConfigDstu2.java" targetPackage="ca.uhn.test.ant.single" packageBase="ca.uhn.test.ant.multi" projectHome="${project.basedir}/.." version="dstu2" includeResources="patient,organization" />
2017-01-29 13:22:28 -05:00
</target>
</configuration>
</execution>
2014-03-13 17:33:12 -04:00
</executions>
2014-10-17 14:51:45 -04:00
<dependencies >
2017-02-04 16:31:18 -05:00
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-base</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu2</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu2.1</artifactId>
<version > ${project.version}</version>
<exclusions >
<exclusion >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-base</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu3</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-hl7org-dstu2</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-validation-resources-dstu2</artifactId>
<version > ${project.version}</version>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-validation-resources-dstu3</artifactId>
<version > ${project.version}</version>
</dependency>
2016-12-06 14:26:24 -05:00
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
2017-01-29 13:22:28 -05:00
<artifactId > hapi-tinder-plugin</artifactId>
<version > ${project.version}</version>
2016-12-06 14:26:24 -05:00
</dependency>
2014-10-17 14:51:45 -04:00
</dependencies>
2014-03-24 08:32:28 -04:00
</plugin>
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-deploy-plugin</artifactId>
<configuration >
<skip > true</skip>
</configuration>
</plugin>
2017-02-04 16:31:18 -05:00
<plugin >
<groupId > org.codehaus.mojo</groupId>
<artifactId > build-helper-maven-plugin</artifactId>
<executions >
<execution >
<id > add-source</id>
<phase > generate-sources</phase>
<goals >
<goal > add-source</goal>
</goals>
<configuration >
<sources >
<source > target/generated-sources/tinder</source>
</sources>
</configuration>
</execution>
</executions>
</plugin>
2014-03-03 18:22:14 -05:00
</plugins>
2014-07-03 08:51:42 -04:00
<pluginManagement >
<plugins >
2017-02-04 16:31:18 -05:00
<!-- This plugin's configuration is used to store Eclipse m2e settings only. It has no influence on the Maven build itself. -->
2014-07-03 08:51:42 -04:00
<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>
2016-03-24 13:34:54 -04:00
<pluginExecution >
<pluginExecutionFilter >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-tinder-plugin</artifactId>
<versionRange > [0.4-SNAPSHOT,)</versionRange>
<goals >
<goal > generate-multi-files</goal>
</goals>
</pluginExecutionFilter>
<action >
<ignore > </ignore>
</action>
</pluginExecution>
<pluginExecution >
<pluginExecutionFilter >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-tinder-plugin</artifactId>
<versionRange > [0.4-SNAPSHOT,)</versionRange>
<goals >
<goal > generate-single-file</goal>
</goals>
</pluginExecutionFilter>
<action >
<ignore > </ignore>
</action>
</pluginExecution>
2014-07-03 08:51:42 -04:00
</pluginExecutions>
</lifecycleMappingMetadata>
</configuration>
</plugin>
</plugins>
</pluginManagement>
2017-02-04 16:31:18 -05:00
<resources >
<resource >
<directory > ${basedir}/src/main/resources</directory>
</resource>
<resource >
<directory > ${basedir}/target/generated-resources/tinder</directory>
</resource>
</resources>
2014-03-03 18:22:14 -05:00
</build>
</project>