<?xml version="1.0" encoding="UTF-8"?>
<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>
  <groupId>de.sfb876</groupId>
  <artifactId>fact-tools</artifactId>
  <name>fact-tools</name>
  <version>0.6.29</version>
  <description>The FACT telescope is a cherenkov telescope on the island of La Palma.
                This set of tools is dedicated to read, parse and process raw data produced
                by the FACT telescope.</description>
  <url>http://sfb876.tu-dortmund.de/FACT/</url>
  <mailingLists>
    <mailingList>
      <name>FACT Analyse @ TU Dortmund (German)</name>
      <subscribe>fact-analyse-subscribe@lists.tu-dortmund.de</subscribe>
      <unsubscribe>fact-analyse-unsubscribe@lists.tu-dortmund.de</unsubscribe>
      <post>fact-analyse@lists.tu-dortmund.de</post>
    </mailingList>
  </mailingLists>
  <developers>
    <developer>
      <name>Christian Bockermann</name>
      <email>christian.bockermann@cs.uni-dortmund.de</email>
      <organization>Informatik LS8, TU-Dortmund</organization>
      <organizationUrl>http://www-ai.cs.uni-dortmund.de</organizationUrl>
      <timezone>+1</timezone>
    </developer>
    <developer>
      <name>Kai Brügge</name>
      <email>kai.bruegge@tu-dortmund.de</email>
      <organization>Informatik LS8, TU-Dortmund</organization>
      <organizationUrl>http://www-ai.cs.uni-dortmund.de</organizationUrl>
      <timezone>+1</timezone>
    </developer>
  </developers>
  <licenses>
    <license>
      <name>GNU General Public License, Version 3</name>
      <url>http://www.gnu.org/licenses/gpl-3.0-standalone.html</url>
    </license>
  </licenses>
  <scm>
    <connection>scm:git:ssh://git@bitbucket.org/cbockermann/fact-tools</connection>
    <developerConnection>scm:git:ssh://git@bitbucket.org/cbockermann/fact-tools</developerConnection>
    <url>https://bitbucket.org/cbockermann/fact-tools</url>
  </scm>
  <build>
    <plugins>
      <plugin>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>2.0.2</version>
        <configuration>
          <source>1.7</source>
          <target>1.7</target>
          <encoding>UTF-8</encoding>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>2.14.1</version>
        <configuration>
          <skipTests>${skipTests}</skipTests>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.1.2</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <phase>verify</phase>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <finalName>fact-tools-${project.version}</finalName>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-release-plugin</artifactId>
        <version>2.5</version>
      </plugin>
      <plugin>
        <artifactId>maven-shade-plugin</artifactId>
        <version>2.1</version>
        <executions>
          <execution>
            <phase>package</phase>
            <goals>
              <goal>shade</goal>
            </goals>
          </execution>
        </executions>
        <configuration>
          <finalName>fact-tools-${project.version}</finalName>
          <transformers>
            <transformer>
              <manifestEntries>
                <Implementation-Vendor>Informatik Lehrstuhl 8, TU Dortmund</Implementation-Vendor>
                <Implementation-Title>FACT Tools</Implementation-Title>
                <Implementation-Version>${project.version}</Implementation-Version>
                <Implementation-Revision>${project.version}</Implementation-Revision>
                <Specification-Title>fact-tools</Specification-Title>
                <Specification-Version>1.0</Specification-Version>
                <main-class>stream.run</main-class>
              </manifestEntries>
            </transformer>
          </transformers>
          <filters>
            <filter>
              <artifact>*:*</artifact>
              <excludes>
                <exclude>META-INF/*.SF</exclude>
                <exclude>META-INF/*.DSA</exclude>
                <exclude>META-INF/*.RSA</exclude>
              </excludes>
            </filter>
          </filters>
        </configuration>
      </plugin>
      <plugin>
        <artifactId>maven-site-plugin</artifactId>
        <version>3.3</version>
        <dependencies>
          <dependency>
            <groupId>org.jwall</groupId>
            <artifactId>doxia-module-markdown</artifactId>
            <version>1.1.4</version>
          </dependency>
          <dependency>
            <groupId>org.apache.maven.wagon</groupId>
            <artifactId>wagon-ssh</artifactId>
            <version>1.0</version>
          </dependency>
        </dependencies>
        <configuration>
          <inputEncoding>UTF-8</inputEncoding>
          <outputEncoding>UTF-8</outputEncoding>
        </configuration>
      </plugin>
    </plugins>
  </build>
  <profiles>
    <profile>
      <id>release-sign-artifacts</id>
      <build>
        <plugins>
          <plugin>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.1</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>generate-docs</id>
      <build>
        <pluginManagement>
          <plugins>
            <plugin>
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>exec-maven-plugin</artifactId>
              <executions>
                <execution>
                  <id>documentation</id>
                  <phase>generate-sources</phase>
                  <goals>
                    <goal>exec</goal>
                  </goals>
                  <configuration>
                    <executable>${basedir}/src/main/resources/CreateDoc.sh</executable>
                  </configuration>
                </execution>
              </executions>
            </plugin>
          </plugins>
        </pluginManagement>
      </build>
    </profile>
    <profile>
      <build>
        <plugins>
          <plugin>
            <groupId>com.github.goldin</groupId>
            <artifactId>copy-maven-plugin</artifactId>
            <version>0.2.5</version>
            <executions>
              <execution>
                <id>create-archive</id>
                <phase>package</phase>
                <goals>
                  <goal>copy</goal>
                </goals>
                <configuration>
                  <resources>
                    <resource>
                      <targetPath>/var/www/download.jwall.org/htdocs/fact-tools/</targetPath>
                      <directory>${project.basedir}/target/</directory>
                      <includes>
                        <include>${binary.name}.jar</include>
                      </includes>
                    </resource>
                  </resources>
                </configuration>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
      <id>ls8-deployment</id>
      <distributionManagement>
        <site>
          <id>fact-site</id>
          <url>scp://webadm@kissen.cs.uni-dortmund.de:/home/info-systeme/WWW/sfb876doc/FACT</url>
        </site>
      </distributionManagement>
    </profile>
  </profiles>
  <repositories>
    <repository>
      <id>sonatype-snapshots</id>
      <name>SonaType Snapshot Maven Repository</name>
      <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
    </repository>
  </repositories>
  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.10</version>
      <scope>test</scope>
      <exclusions>
        <exclusion>
          <artifactId>hamcrest-core</artifactId>
          <groupId>org.hamcrest</groupId>
        </exclusion>
      </exclusions>
    </dependency>
  </dependencies>
  <reporting>
    <plugins>
      <plugin>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>2.4</version>
        <reportSets>
          <reportSet>
            <reports>
              <report>project-team</report>
              <report>mailing-list</report>
              <report>scm</report>
              <report>cim</report>
              <report>dependencies</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.8</version>
        <configuration />
      </plugin>
    </plugins>
  </reporting>
  <distributionManagement>
    <repository>
      <id>sonatype-releases</id>
      <name>sonatype Maven Staging Repository</name>
      <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
    </repository>
    <snapshotRepository>
      <id>sonatype-snapshots</id>
      <name>sonatype Snapshot Repository</name>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
    <site>
      <id>site-sfb876</id>
      <url>scp://sfb876.de:/var/www/sfb876.de/htdocs/fact-tools/</url>
    </site>
  </distributionManagement>
  <properties>
    <skipTests>false</skipTests>
    <binary.name>fact-tools-${project.version}</binary.name>
    <streams.version>[0.9.18,)</streams.version>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <streams.scope>compile</streams.scope>
  </properties>
</project>

