2017-11-16 13:03:13 -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" >
<modelVersion > 4.0.0</modelVersion>
<!--
Note: HAPI projects use the "hapi-fhir" POM as their base to provide easy management.
You do not need to use this in your own projects, so the "parent" tag and it's
contents below may be removed
if you are using this file as a basis for your own project.
-->
<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>
2018-03-15 06:49:04 -04:00
<relativePath > ../../pom.xml</relativePath>
2017-11-16 13:03:13 -05:00
</parent>
2018-03-15 06:49:04 -04:00
<artifactId > hapi-fhir-jpaserver-cds-example</artifactId>
2017-11-16 13:03:13 -05:00
<packaging > war</packaging>
<name > HAPI FHIR JPA Clinical Decision Support Server - Example</name>
<repositories >
<repository >
<id > oss-snapshots</id>
<snapshots >
<enabled > true</enabled>
</snapshots>
<url > https://oss.sonatype.org/content/repositories/snapshots/</url>
</repository>
</repositories>
<dependencies >
<dependency >
<groupId > org.eclipse.jetty.websocket</groupId>
<artifactId > websocket-api</artifactId>
<version > ${jetty_version}</version>
</dependency>
<dependency >
<groupId > org.eclipse.jetty.websocket</groupId>
<artifactId > websocket-client</artifactId>
<version > ${jetty_version}</version>
</dependency>
<dependency >
<groupId > mysql</groupId>
<artifactId > mysql-connector-java</artifactId>
<version > 6.0.5</version>
</dependency>
<!-- This dependency includes the core HAPI - FHIR classes -->
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-base</artifactId>
<version > ${project.version}</version>
</dependency>
<!-- At least one "structures" JAR must also be included -->
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-structures-dstu3</artifactId>
<version > ${project.version}</version>
</dependency>
<!-- This dependency includes the JPA server itself, which is packaged separately from the rest of HAPI FHIR -->
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-jpaserver-base</artifactId>
<version > ${project.version}</version>
</dependency>
<!-- This dependency is used for the "FHIR Tester" web app overlay -->
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-testpage-overlay</artifactId>
<version > ${project.version}</version>
<type > war</type>
<scope > provided</scope>
</dependency>
<dependency >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-testpage-overlay</artifactId>
<version > ${project.version}</version>
<classifier > classes</classifier>
<scope > provided</scope>
</dependency>
2018-07-30 20:40:48 -04:00
<dependency >
<groupId > org.opencds.cqf</groupId>
<artifactId > cqf-ruler</artifactId>
<version > 0.1.2-SNAPSHOT</version>
</dependency>
2017-11-16 13:03:13 -05:00
<!-- HAPI - FHIR uses Logback for logging support. The logback library is included automatically by Maven as a part of the hapi - fhir - base dependency, but you also need to include a logging library. Logback
is used here, but log4j would also be fine. -->
<dependency >
<groupId > ch.qos.logback</groupId>
<artifactId > logback-classic</artifactId>
</dependency>
<!-- Needed for JEE/Servlet support -->
<dependency >
<groupId > javax.servlet</groupId>
<artifactId > javax.servlet-api</artifactId>
<scope > provided</scope>
</dependency>
<!-- If you are using HAPI narrative generation, you will need to include Thymeleaf as well. Otherwise the following can be omitted. -->
<dependency >
<groupId > org.thymeleaf</groupId>
<artifactId > thymeleaf</artifactId>
</dependency>
<!-- Used for CORS support -->
<dependency >
<groupId > org.ebaysf.web</groupId>
<artifactId > cors-filter</artifactId>
<exclusions >
<exclusion >
<artifactId > servlet-api</artifactId>
<groupId > javax.servlet</groupId>
</exclusion>
</exclusions>
</dependency>
<!-- Spring Web is used to deploy the server to a web container. -->
<dependency >
<groupId > org.springframework</groupId>
<artifactId > spring-web</artifactId>
</dependency>
<!-- You may not need this if you are deploying to an application server which provides database connection pools itself. -->
<dependency >
<groupId > org.apache.commons</groupId>
<artifactId > commons-dbcp2</artifactId>
</dependency>
<!-- This example uses Derby embedded database. If you are using another database such as Mysql or Oracle, you may omit the following dependencies and replace them with an appropriate database client
dependency for your database platform. -->
<dependency >
<groupId > org.apache.derby</groupId>
<artifactId > derby</artifactId>
</dependency>
<dependency >
<groupId > org.apache.derby</groupId>
<artifactId > derbynet</artifactId>
</dependency>
<dependency >
<groupId > org.apache.derby</groupId>
<artifactId > derbyclient</artifactId>
</dependency>
<!-- The following dependencies are only needed for automated unit tests, you do not neccesarily need them to run the example. -->
<dependency >
<groupId > org.eclipse.jetty</groupId>
<artifactId > jetty-servlets</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.eclipse.jetty</groupId>
<artifactId > jetty-servlet</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.eclipse.jetty.websocket</groupId>
<artifactId > websocket-server</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.eclipse.jetty</groupId>
<artifactId > jetty-server</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.eclipse.jetty</groupId>
<artifactId > jetty-util</artifactId>
<scope > test</scope>
</dependency>
<dependency >
<groupId > org.eclipse.jetty</groupId>
<artifactId > jetty-webapp</artifactId>
<scope > test</scope>
</dependency>
<dependency >
2018-05-14 17:38:40 -04:00
<groupId > com.helger</groupId>
<artifactId > ph-schematron</artifactId>
2017-11-16 13:03:13 -05:00
<exclusions >
<exclusion >
<artifactId > Saxon-HE</artifactId>
<groupId > net.sf.saxon</groupId>
</exclusion>
</exclusions>
</dependency>
<!--
For some reason JavaDoc crashed during site generation unless we have this dependency
-->
<dependency >
<groupId > javax.interceptor</groupId>
<artifactId > javax.interceptor-api</artifactId>
<scope > provided</scope>
</dependency>
</dependencies>
<build >
<!-- Tells Maven to name the generated WAR file as hapi - fhir - jpaserver - example.war -->
<finalName > hapi-fhir-jpaserver-cds</finalName>
<!-- The following is not required for the application to build, but allows you to test it by issuing "mvn jetty:run" from the command line. -->
<pluginManagement >
<plugins >
<plugin >
<groupId > org.eclipse.jetty</groupId>
<artifactId > jetty-maven-plugin</artifactId>
<configuration >
<webApp >
<contextPath > /hapi-fhir-jpaserver-cds</contextPath>
<allowDuplicateFragmentNames > true</allowDuplicateFragmentNames>
</webApp>
</configuration>
</plugin>
</plugins>
</pluginManagement>
<plugins >
2018-03-28 06:15:28 -04:00
<!--
The CQF-Ruler project has some OWASP dependency security failures which we don't want
to cause the whole build to fail. TODO: investigate these
-->
2017-11-16 13:03:13 -05:00
<plugin >
2018-03-28 06:15:28 -04:00
<groupId > org.owasp</groupId>
<artifactId > dependency-check-maven</artifactId>
2017-11-16 13:03:13 -05:00
<configuration >
2018-03-28 06:15:28 -04:00
<failBuildOnCVSS > 99</failBuildOnCVSS>
<failOnError > false</failOnError>
2017-11-16 13:03:13 -05:00
</configuration>
</plugin>
<!-- The configuration here tells the WAR plugin to include the FHIR Tester overlay. You can omit it if you are not using that feature. -->
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-war-plugin</artifactId>
<configuration >
<archive >
<manifestEntries >
<Build-Time > ${maven.build.timestamp}</Build-Time>
</manifestEntries>
</archive>
<overlays >
<overlay >
<groupId > ca.uhn.hapi.fhir</groupId>
<artifactId > hapi-fhir-testpage-overlay</artifactId>
</overlay>
</overlays>
<webXml > src/main/webapp/WEB-INF/web.xml</webXml>
</configuration>
</plugin>
<!-- This plugin is just a part of the HAPI internal build process, you do not need to incude it in your own projects -->
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-deploy-plugin</artifactId>
<configuration >
<skip > true</skip>
</configuration>
</plugin>
<!-- This is to run the integration tests -->
<plugin >
<groupId > org.apache.maven.plugins</groupId>
<artifactId > maven-failsafe-plugin</artifactId>
<configuration >
<redirectTestOutputToFile > true</redirectTestOutputToFile>
</configuration>
<executions >
<execution >
<goals >
<goal > integration-test</goal>
<goal > verify</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>