<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>
    <artifactId>onebusaway-gtfs-modules</artifactId>
    <groupId>io.leonard</groupId>
    <version>1.3.103</version>
    <relativePath>..</relativePath>
  </parent>
  <artifactId>onebusaway-gtfs-merge-cli</artifactId>
  <name>onebusaway-gtfs-merge-cli</name>
  <description>Command-line interface to the GTFS merge tool.</description>

  <properties>
    <!-- We don't always want to deploy the packaged jar to main maven repo, since it includes all the project dependencies and 
      is quite large -->
    <skip-deploy-onebusaway-gtfs-merge-cli-jar>false</skip-deploy-onebusaway-gtfs-merge-cli-jar>
  </properties>

  <dependencies>
    <dependency>
      <groupId>io.leonard</groupId>
      <artifactId>onebusaway-gtfs-merge</artifactId>
      <version>${project.version}</version>
    </dependency>
    <dependency>
      <groupId>commons-cli</groupId>
      <artifactId>commons-cli</artifactId>
      <version>1.2</version>
    </dependency>
    <dependency>
      <groupId>org.slf4j</groupId>
      <artifactId>slf4j-log4j12</artifactId>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
            <configuration>
              <shadedClassifierName>withAllDependencies</shadedClassifierName>
              <createDependencyReducedPom>false</createDependencyReducedPom>
              <transformers>
                <transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
                  <mainClass>org.onebusaway.gtfs_merge.GtfsMergerMain</mainClass>
                </transformer>
              </transformers>
            </configuration>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-deploy-plugin</artifactId>
        <configuration>
          <skip>${skip-deploy-onebusaway-gtfs-merge-cli-jar}</skip>
        </configuration>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>oss-distribution</id>
      <properties>
        <skip-deploy-onebusaway-gtfs-merge-cli-jar>true</skip-deploy-onebusaway-gtfs-merge-cli-jar>
      </properties>
    </profile>
  </profiles>

</project>
