2014-01-30 06:00:06 +08: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/maven-v4_0_0.xsd">
|
|
|
|
|
<modelVersion>4.0.0</modelVersion>
|
|
|
|
|
|
|
|
|
|
<!-- Properties for your assembly -->
|
|
|
|
|
<groupId>org.mycompany.app</groupId>
|
|
|
|
|
<artifactId>external-example</artifactId>
|
|
|
|
|
<packaging>jar</packaging>
|
|
|
|
|
<version>1.0-SNAPSHOT</version>
|
2014-03-05 00:10:36 +08:00
|
|
|
<name>External Example</name>
|
2014-01-30 06:00:06 +08:00
|
|
|
|
|
|
|
|
<properties>
|
2017-07-28 22:14:19 +08:00
|
|
|
<gatk.version>3.9-SNAPSHOT</gatk.version>
|
2014-01-30 06:00:06 +08:00
|
|
|
<!--
|
2014-03-05 00:10:36 +08:00
|
|
|
gatk.basedir property must point to your checkout of GATK/GATK until we can get all the
|
|
|
|
|
dependencies out of the committed gatk repo and into central.
|
|
|
|
|
The installed pom for gatk-root looks for this property.
|
|
|
|
|
Alternatively, one can install all the gatk files into their local ~/.m2/repository repo.
|
2014-01-30 06:00:06 +08:00
|
|
|
http://maven.apache.org/plugins/maven-install-plugin/examples/custom-pom-installation.html
|
|
|
|
|
-->
|
2014-03-05 00:10:36 +08:00
|
|
|
<gatk.basedir>../..</gatk.basedir>
|
2014-01-30 06:00:06 +08:00
|
|
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
|
|
|
|
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
|
|
|
|
|
<maven.build.timestamp.format>yyyy/MM/dd HH:mm:ss</maven.build.timestamp.format>
|
2014-02-09 17:05:51 +08:00
|
|
|
|
|
|
|
|
<!-- NOTE: Currently the testing infrastructure for walkers does not support running outside the Broad. -->
|
2014-03-05 00:10:36 +08:00
|
|
|
<gatk.committests.skipped>true</gatk.committests.skipped>
|
|
|
|
|
<gatk.unittests.skipped>${gatk.committests.skipped}</gatk.unittests.skipped>
|
|
|
|
|
<gatk.integrationtests.skipped>${gatk.committests.skipped}</gatk.integrationtests.skipped>
|
2014-02-17 16:43:40 +08:00
|
|
|
|
|
|
|
|
<!-- This flag is used by the package tests to disable re-shading -->
|
2014-11-02 15:18:07 +08:00
|
|
|
<gatk.unpack.phase>prepare-package</gatk.unpack.phase>
|
2014-03-05 00:10:36 +08:00
|
|
|
<gatk.shade.phase>package</gatk.shade.phase>
|
2014-01-30 06:00:06 +08:00
|
|
|
</properties>
|
|
|
|
|
|
|
|
|
|
<repositories>
|
|
|
|
|
<repository>
|
2014-03-05 00:10:36 +08:00
|
|
|
<id>gatk.public.repo.local</id>
|
|
|
|
|
<name>GATK Public Local Repository</name>
|
|
|
|
|
<url>file:${gatk.basedir}/public/repo</url>
|
2014-01-30 06:00:06 +08:00
|
|
|
</repository>
|
|
|
|
|
</repositories>
|
|
|
|
|
|
|
|
|
|
<dependencies>
|
|
|
|
|
<dependency>
|
2014-03-05 00:10:36 +08:00
|
|
|
<groupId>org.broadinstitute.gatk</groupId>
|
|
|
|
|
<artifactId>gatk-tools-public</artifactId>
|
|
|
|
|
<version>${gatk.version}</version>
|
2014-01-30 06:00:06 +08:00
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
2014-03-05 00:10:36 +08:00
|
|
|
<groupId>org.broadinstitute.gatk</groupId>
|
2014-10-22 00:40:45 +08:00
|
|
|
<artifactId>gatk-utils</artifactId>
|
|
|
|
|
<version>${gatk.version}</version>
|
|
|
|
|
<type>test-jar</type>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.broadinstitute.gatk</groupId>
|
|
|
|
|
<artifactId>gatk-engine</artifactId>
|
2014-03-05 00:10:36 +08:00
|
|
|
<version>${gatk.version}</version>
|
2014-02-01 04:02:46 +08:00
|
|
|
<type>test-jar</type>
|
2014-01-30 06:00:06 +08:00
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
|
|
|
|
|
<dependency>
|
|
|
|
|
<groupId>org.testng</groupId>
|
|
|
|
|
<artifactId>testng</artifactId>
|
|
|
|
|
<version>6.8</version>
|
|
|
|
|
<scope>test</scope>
|
|
|
|
|
</dependency>
|
|
|
|
|
</dependencies>
|
|
|
|
|
|
|
|
|
|
<build>
|
|
|
|
|
<plugins>
|
|
|
|
|
|
|
|
|
|
<!-- Copy test resources to your classes directory -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-dependency-plugin</artifactId>
|
|
|
|
|
<version>2.8</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>unpack</id>
|
2014-09-01 00:35:53 +08:00
|
|
|
<phase>${gatk.unpack.phase}</phase>
|
2014-01-30 06:00:06 +08:00
|
|
|
<goals>
|
|
|
|
|
<goal>unpack</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<artifactItems>
|
|
|
|
|
<artifactItem>
|
2014-03-05 00:10:36 +08:00
|
|
|
<groupId>org.broadinstitute.gatk</groupId>
|
2014-10-22 00:40:45 +08:00
|
|
|
<artifactId>gatk-utils</artifactId>
|
2014-03-05 00:10:36 +08:00
|
|
|
<version>${gatk.version}</version>
|
2014-01-30 06:00:06 +08:00
|
|
|
<classifier>example-resources</classifier>
|
|
|
|
|
<type>tar.bz2</type>
|
|
|
|
|
<outputDirectory>${project.build.outputDirectory}</outputDirectory>
|
|
|
|
|
</artifactItem>
|
|
|
|
|
</artifactItems>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<!-- Generate help text -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-javadoc-plugin</artifactId>
|
|
|
|
|
<version>2.9.1</version>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>extract-resource-bundle</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>javadoc</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<phase>prepare-package</phase>
|
|
|
|
|
<configuration>
|
2014-03-05 00:10:36 +08:00
|
|
|
<doclet>org.broadinstitute.gatk.utils.help.ResourceBundleExtractorDoclet</doclet>
|
2014-01-30 06:00:06 +08:00
|
|
|
<!-- Required as doclet uses reflection to access classes for documentation, instead of source java-->
|
|
|
|
|
<docletPath>${project.build.outputDirectory}</docletPath>
|
|
|
|
|
<docletArtifact>
|
2014-11-02 15:18:23 +08:00
|
|
|
<groupId>${project.groupId}</groupId>
|
|
|
|
|
<artifactId>${project.artifactId}</artifactId>
|
|
|
|
|
<version>${project.version}</version>
|
2014-01-30 06:00:06 +08:00
|
|
|
</docletArtifact>
|
|
|
|
|
<maxmemory>2g</maxmemory>
|
|
|
|
|
<useStandardDocletOptions>false</useStandardDocletOptions>
|
|
|
|
|
<quiet>true</quiet>
|
2014-03-05 00:10:36 +08:00
|
|
|
<additionalparam>-build-timestamp "${maven.build.timestamp}" -absolute-version "${project.version}" -out ${project.build.outputDirectory}/GATKText.properties</additionalparam>
|
2014-01-30 06:00:06 +08:00
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<!-- Create packaged jar, containing only your walker and required classes -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-shade-plugin</artifactId>
|
2016-04-27 01:56:05 +08:00
|
|
|
<version>2.4.3</version>
|
2014-01-30 06:00:06 +08:00
|
|
|
<executions>
|
|
|
|
|
<execution>
|
2014-03-05 00:10:36 +08:00
|
|
|
<phase>${gatk.shade.phase}</phase>
|
2014-01-30 06:00:06 +08:00
|
|
|
<goals>
|
|
|
|
|
<goal>shade</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
|
|
|
|
<minimizeJar>true</minimizeJar>
|
2014-11-02 15:18:23 +08:00
|
|
|
<createDependencyReducedPom>false</createDependencyReducedPom>
|
2014-01-30 06:00:06 +08:00
|
|
|
<!-- Explicitly include classes loaded via reflection from artifacts below -->
|
|
|
|
|
<filters>
|
|
|
|
|
<filter>
|
|
|
|
|
<artifact>commons-logging:commons-logging</artifact>
|
|
|
|
|
<includes>
|
|
|
|
|
<include>**</include>
|
|
|
|
|
</includes>
|
|
|
|
|
</filter>
|
|
|
|
|
<filter>
|
2015-05-13 03:05:40 +08:00
|
|
|
<artifact>com.github.samtools:htsjdk</artifact>
|
2014-01-30 06:00:06 +08:00
|
|
|
<includes>
|
|
|
|
|
<include>**</include>
|
|
|
|
|
</includes>
|
|
|
|
|
</filter>
|
|
|
|
|
</filters>
|
|
|
|
|
<!-- Stop shade from trying to unzip these indirect dependencies -->
|
|
|
|
|
<artifactSet>
|
|
|
|
|
<excludes>
|
2014-03-05 00:10:36 +08:00
|
|
|
<exclude>org.broadinstitute.gatk:gsalib:tar.gz:*</exclude>
|
|
|
|
|
<exclude>org.broadinstitute.gatk:*:tar.bz2:example-resources</exclude>
|
2014-01-30 06:00:06 +08:00
|
|
|
</excludes>
|
|
|
|
|
</artifactSet>
|
|
|
|
|
<transformers>
|
|
|
|
|
<!-- Set the main class to the GATK -->
|
|
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
2014-03-05 00:10:36 +08:00
|
|
|
<mainClass>org.broadinstitute.gatk.engine.CommandLineGATK</mainClass>
|
2014-01-30 06:00:06 +08:00
|
|
|
</transformer>
|
2014-03-05 00:10:36 +08:00
|
|
|
<!-- Include and append to the existing gatk help text in GATKText.properties -->
|
2014-01-30 06:00:06 +08:00
|
|
|
<transformer implementation="org.apache.maven.plugins.shade.resource.AppendingTransformer">
|
2014-03-05 00:10:36 +08:00
|
|
|
<resource>GATKText.properties</resource>
|
2014-01-30 06:00:06 +08:00
|
|
|
</transformer>
|
|
|
|
|
</transformers>
|
|
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<!-- surefire runs fast, small (aka unit) tests -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
|
|
|
<version>2.16</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<!-- See explicit executions below -->
|
|
|
|
|
<skip>true</skip>
|
2014-02-15 13:52:20 +08:00
|
|
|
<failIfNoTests>false</failIfNoTests>
|
|
|
|
|
<!-- Pass various system properties -->
|
2014-01-30 06:00:06 +08:00
|
|
|
<systemPropertyVariables>
|
2014-09-01 18:15:19 +08:00
|
|
|
<gatkdir>${gatk.basedir}</gatkdir>
|
2014-02-15 13:52:20 +08:00
|
|
|
<java.io.tmpdir>${java.io.tmpdir}</java.io.tmpdir>
|
2014-01-30 06:00:06 +08:00
|
|
|
</systemPropertyVariables>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
2014-02-15 13:52:20 +08:00
|
|
|
<!-- Disable maven default execution -->
|
2014-01-30 06:00:06 +08:00
|
|
|
<execution>
|
|
|
|
|
<id>default-test</id>
|
|
|
|
|
<phase>none</phase>
|
|
|
|
|
</execution>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>unit-tests</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>test</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<configuration>
|
2014-03-05 00:10:36 +08:00
|
|
|
<skip>${gatk.unittests.skipped}</skip>
|
2014-01-30 06:00:06 +08:00
|
|
|
<includes>
|
2014-01-30 17:47:54 +08:00
|
|
|
<include>**/*UnitTest.class</include>
|
2014-01-30 06:00:06 +08:00
|
|
|
</includes>
|
2014-09-01 18:15:19 +08:00
|
|
|
<systemPropertyVariables>
|
|
|
|
|
<testType>unit</testType>
|
|
|
|
|
</systemPropertyVariables>
|
2014-01-30 06:00:06 +08:00
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
|
|
|
|
|
<!-- failsafe runs all other tests that may take longer, and may require pre/post test setup and teardown -->
|
|
|
|
|
<plugin>
|
|
|
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
|
|
|
<artifactId>maven-failsafe-plugin</artifactId>
|
|
|
|
|
<version>2.16</version>
|
|
|
|
|
<configuration>
|
|
|
|
|
<!-- See explicit executions below -->
|
|
|
|
|
<skip>true</skip>
|
2014-02-15 13:52:20 +08:00
|
|
|
<failIfNoTests>false</failIfNoTests>
|
|
|
|
|
<!-- Pass various system properties -->
|
2014-01-30 06:00:06 +08:00
|
|
|
<systemPropertyVariables>
|
2014-09-01 18:15:19 +08:00
|
|
|
<gatkdir>${gatk.basedir}</gatkdir>
|
2014-02-15 13:52:20 +08:00
|
|
|
<java.io.tmpdir>${java.io.tmpdir}</java.io.tmpdir>
|
2014-01-30 06:00:06 +08:00
|
|
|
</systemPropertyVariables>
|
|
|
|
|
</configuration>
|
|
|
|
|
<executions>
|
|
|
|
|
<execution>
|
|
|
|
|
<id>integration-tests</id>
|
|
|
|
|
<goals>
|
|
|
|
|
<goal>integration-test</goal>
|
|
|
|
|
<goal>verify</goal>
|
|
|
|
|
</goals>
|
|
|
|
|
<!-- run integration tests -->
|
|
|
|
|
<configuration>
|
2014-03-05 00:10:36 +08:00
|
|
|
<skip>${gatk.integrationtests.skipped}</skip>
|
2014-01-30 06:00:06 +08:00
|
|
|
<includes>
|
|
|
|
|
<include>**/*IntegrationTest.class</include>
|
|
|
|
|
</includes>
|
2014-09-01 18:15:19 +08:00
|
|
|
<systemPropertyVariables>
|
|
|
|
|
<testType>integrationtest</testType>
|
|
|
|
|
</systemPropertyVariables>
|
2014-01-30 06:00:06 +08:00
|
|
|
</configuration>
|
|
|
|
|
</execution>
|
|
|
|
|
</executions>
|
|
|
|
|
</plugin>
|
|
|
|
|
</plugins>
|
|
|
|
|
</build>
|
|
|
|
|
|
2014-11-02 15:18:23 +08:00
|
|
|
<reporting>
|
|
|
|
|
<excludeDefaults>true</excludeDefaults>
|
|
|
|
|
</reporting>
|
|
|
|
|
|
2014-11-02 15:18:07 +08:00
|
|
|
<!-- These profiles are used by the GATK build in a multi-module setting. You do NOT need these profiles. -->
|
2014-02-17 16:43:40 +08:00
|
|
|
<profiles>
|
2014-11-02 15:18:07 +08:00
|
|
|
<!-- Optionally do not shade/package jars -->
|
|
|
|
|
<!--
|
|
|
|
|
NOTE: Profile id "fast" comes from comments in PR #771.
|
|
|
|
|
The name is meant to be memorable, but is highly non-specific. Users are forewarned that
|
|
|
|
|
behavior of this profile, or the identifier itself, may be heavily modified in the future.
|
|
|
|
|
Hardcode usage in non-VCS controlled scripts at your own risk.
|
|
|
|
|
-->
|
|
|
|
|
<profile>
|
|
|
|
|
<id>fast</id>
|
|
|
|
|
<activation>
|
|
|
|
|
<property>
|
|
|
|
|
<name>disable.shadepackage</name>
|
|
|
|
|
</property>
|
|
|
|
|
</activation>
|
|
|
|
|
<properties>
|
|
|
|
|
<gatk.unpack.phase>none</gatk.unpack.phase>
|
|
|
|
|
<gatk.shade.phase>none</gatk.shade.phase>
|
|
|
|
|
</properties>
|
|
|
|
|
</profile>
|
|
|
|
|
<!-- Collection of properties for use during package testing -->
|
2014-02-17 16:43:40 +08:00
|
|
|
<profile>
|
|
|
|
|
<id>packagetests-enabled</id>
|
|
|
|
|
<activation>
|
|
|
|
|
<property>
|
2014-03-05 00:10:36 +08:00
|
|
|
<name>gatk.packagetests.enabled</name>
|
2014-02-17 16:43:40 +08:00
|
|
|
<value>true</value>
|
|
|
|
|
</property>
|
|
|
|
|
</activation>
|
|
|
|
|
<properties>
|
2014-09-01 00:35:53 +08:00
|
|
|
<gatk.jar.phase>none</gatk.jar.phase>
|
|
|
|
|
<gatk.unpack.phase>none</gatk.unpack.phase>
|
2014-03-05 00:10:36 +08:00
|
|
|
<gatk.shade.phase>none</gatk.shade.phase>
|
2014-02-17 16:43:40 +08:00
|
|
|
</properties>
|
|
|
|
|
</profile>
|
|
|
|
|
</profiles>
|
|
|
|
|
|
2014-01-30 06:00:06 +08:00
|
|
|
</project>
|