hapi-fhir/hapi-fhir-android/pom.xml

294 lines
9.2 KiB
XML
Raw Normal View History

2015-02-11 08:52:46 -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>
<parent>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir</artifactId>
2015-07-14 18:08:06 -04:00
<version>1.2-SNAPSHOT</version>
2015-02-11 08:52:46 -05:00
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>hapi-fhir-android</artifactId>
<packaging>jar</packaging>
2015-02-16 23:02:50 -05:00
<name>HAPI FHIR - Android</name>
2015-02-11 08:52:46 -05:00
<dependencies>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-base</artifactId>
2015-07-14 18:08:06 -04:00
<version>1.2-SNAPSHOT</version>
2015-02-11 08:52:46 -05:00
<exclusions>
<!--
2015-02-11 08:52:46 -05:00
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</exclusion>
<exclusion>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpcore</artifactId>
</exclusion>
-->
<exclusion>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</exclusion>
2015-02-11 08:52:46 -05:00
</exclusions>
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu</artifactId>
2015-07-14 18:08:06 -04:00
<version>1.2-SNAPSHOT</version>
<optional>true</optional>
2015-02-11 08:52:46 -05:00
</dependency>
<dependency>
<groupId>ca.uhn.hapi.fhir</groupId>
<artifactId>hapi-fhir-structures-dstu2</artifactId>
2015-07-14 18:08:06 -04:00
<version>1.2-SNAPSHOT</version>
<optional>true</optional>
2015-02-11 08:52:46 -05:00
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient-android</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-android</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<scope>test</scope>
</dependency>
2015-02-16 14:17:29 -05:00
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
</dependency>
2015-08-09 11:18:04 -04:00
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
2015-02-16 14:17:29 -05:00
<!-- Android does not come with the Servlet API bundled, and MethodUtil
requires it -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<scope>compile</scope>
</dependency>
2015-02-16 14:17:29 -05:00
2015-02-11 08:52:46 -05:00
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<configuration>
2015-03-16 09:04:27 -04:00
<skip>false</skip>
2015-02-11 08:52:46 -05:00
</configuration>
</plugin>
2015-02-16 14:17:29 -05:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<configuration>
<classpathDependencyScopeExclude>compile+runtime+test+provided</classpathDependencyScopeExclude>
2015-02-16 14:17:29 -05:00
<additionalClasspathElements>
2015-08-06 10:15:58 -04:00
<additionalClasspathElement>${project.build.directory}/hapi-fhir-android-${project.version}-dstu2.jar</additionalClasspathElement>
2015-02-16 14:17:29 -05:00
</additionalClasspathElements>
2015-08-06 10:15:58 -04:00
<classpathDependencyExcludes>
<classpathDependencyExclude>ca.uhn.hapi.fhir:hapi-fhir-base</classpathDependencyExclude>
<classpathDependencyExclude>org.codehaus.woodstox:*</classpathDependencyExclude>
<classpathDependencyExclude>javax.json:*</classpathDependencyExclude>
<classpathDependencyExclude>org.glassfish:javax.json</classpathDependencyExclude>
</classpathDependencyExcludes>
2015-02-16 14:17:29 -05:00
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
2015-02-11 08:52:46 -05:00
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>2.3</version>
<executions>
<execution>
<id>normal</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<createSourcesJar>true</createSourcesJar>
<shadedArtifactAttached>true</shadedArtifactAttached>
<artifactSet>
<includes>
<include>ca.uhn.hapi.fhir:hapi-fhir-base</include>
<include>org.glassfish:javax.json</include>
<include>org.codehaus.woodstox:woodstox-core-asl</include>
<include>javax.xml.stream:stax-api</include>
<include>org.codehaus.woodstox:stax2-api</include>
<include>org.glassfish:javax.json</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>javax.xml.stream</pattern>
<shadedPattern>ca.uhn.fhir.repackage.javax.xml.stream</shadedPattern>
</relocation>
<relocation>
<pattern>javax.json</pattern>
<shadedPattern>ca.uhn.fhir.repackage.javax.json</shadedPattern>
</relocation>
</relocations>
<filters>
<filter>
<artifact>ca.uhn.hapi.fhir:hapi-fhir-base</artifact>
<excludes>
<exclude>**/*.java</exclude>
</excludes>
</filter>
</filters>
</configuration>
</execution>
2015-02-11 08:52:46 -05:00
<execution>
2015-08-06 10:15:58 -04:00
<id>dstu</id>
2015-02-11 08:52:46 -05:00
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
2015-08-06 10:15:58 -04:00
<createSourcesJar>true</createSourcesJar>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>dstu</shadedClassifierName>
2015-02-11 08:52:46 -05:00
<artifactSet>
<includes>
<!--
2015-02-16 14:17:29 -05:00
<include>commons-codec:commons-codec</include>
-->
2015-02-11 08:52:46 -05:00
<include>ca.uhn.hapi.fhir:hapi-fhir-base</include>
2015-08-06 10:15:58 -04:00
<include>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu</include>
2015-02-11 08:52:46 -05:00
<include>org.glassfish:javax.json</include>
<include>org.codehaus.woodstox:woodstox-core-asl</include>
<include>javax.xml.stream:stax-api</include>
<!-- <include>javax.servlet:javax.servlet-api</include>-->
2015-02-11 08:52:46 -05:00
<include>org.codehaus.woodstox:stax2-api</include>
<!-- <include>org.slf4j:slf4j*</include> -->
<!--
2015-02-11 08:52:46 -05:00
<include>org.apache.commons:*</include>
<include>org.apache.httpcomponents:*</include>
-->
2015-02-16 14:17:29 -05:00
<include>org.glassfish:javax.json</include>
2015-02-11 08:52:46 -05:00
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>javax.xml.stream</pattern>
<shadedPattern>ca.uhn.fhir.repackage.javax.xml.stream</shadedPattern>
</relocation>
<relocation>
<pattern>javax.json</pattern>
<shadedPattern>ca.uhn.fhir.repackage.javax.json</shadedPattern>
</relocation>
</relocations>
2015-02-16 12:19:08 -05:00
<filters>
<filter>
<artifact>ca.uhn.hapi.fhir:hapi-fhir-base</artifact>
<excludes>
<exclude>ca/uhn/fhir/model/dstu/valueset/**</exclude>
2015-02-16 14:17:29 -05:00
<exclude>**/*.java</exclude>
2015-02-16 12:19:08 -05:00
</excludes>
</filter>
</filters>
2015-02-11 08:52:46 -05:00
</configuration>
</execution>
2015-08-06 10:15:58 -04:00
<execution>
<id>dstu2</id>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>true</createDependencyReducedPom>
<createSourcesJar>true</createSourcesJar>
<shadedArtifactAttached>true</shadedArtifactAttached>
<shadedClassifierName>dstu2</shadedClassifierName>
<artifactSet>
<includes>
<!--
2015-08-06 10:15:58 -04:00
<include>commons-codec:commons-codec</include>
-->
2015-08-06 10:15:58 -04:00
<include>ca.uhn.hapi.fhir:hapi-fhir-base</include>
<include>ca.uhn.hapi.fhir:hapi-fhir-structures-dstu2</include>
<include>org.glassfish:javax.json</include>
<include>org.codehaus.woodstox:woodstox-core-asl</include>
<include>javax.xml.stream:stax-api</include>
<!-- <include>javax.servlet:javax.servlet-api</include>-->
2015-08-06 10:15:58 -04:00
<include>org.codehaus.woodstox:stax2-api</include>
<!--
2015-08-06 10:15:58 -04:00
<include>org.apache.commons:*</include>
<include>org.apache.httpcomponents:*</include>
-->
2015-08-06 10:15:58 -04:00
<include>org.glassfish:javax.json</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>javax.xml.stream</pattern>
<shadedPattern>ca.uhn.fhir.repackage.javax.xml.stream</shadedPattern>
</relocation>
<relocation>
<pattern>javax.json</pattern>
<shadedPattern>ca.uhn.fhir.repackage.javax.json</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
2015-02-11 08:52:46 -05:00
</executions>
</plugin>
</plugins>
</build>
2015-03-16 10:17:49 -04:00
<profiles>
<profile>
<id>DIST</id>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<version>${maven_assembly_plugin_version}</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<configuration>
<attach>true</attach>
<descriptors>
<descriptor>${project.basedir}/src/assembly/android-sources.xml</descriptor>
<descriptor>${project.basedir}/src/assembly/android-javadoc.xml</descriptor>
</descriptors>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
</profile>
</profiles>
2015-02-11 08:52:46 -05:00
</project>