<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>org.orekit</groupId>
  <artifactId>rugged</artifactId>
  <version>1.0-SNAPSHOT</version>
  <packaging>bundle</packaging>
  <name>Rugged</name>

  <inceptionYear>2014</inceptionYear>
  <description>
    Rugged is an Orekit add-on handling Digital Elevation Models
    contribution to line of sight computation
  </description>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
    <maven.compiler.source>1.6</maven.compiler.source>
    <maven.compiler.target>1.6</maven.compiler.target>
    <rugged.maven-compiler-plugin.version>3.2</rugged.maven-compiler-plugin.version>
    <rugged.maven-jar-plugin.version>2.5</rugged.maven-jar-plugin.version>
    <rugged.maven-assembly-plugin.version>2.5.2</rugged.maven-assembly-plugin.version>
    <rugged.maven-bundle-plugin.version>2.5.3</rugged.maven-bundle-plugin.version>
    <rugged.maven-resources-plugin.version>2.7</rugged.maven-resources-plugin.version>
    <rugged.maven-clean-plugin.version>2.6.1</rugged.maven-clean-plugin.version>
    <rugged.jacoco-maven-plugin.version>0.7.2.201409121644</rugged.jacoco-maven-plugin.version>
    <rugged.maven-plantuml-plugin.version>7940</rugged.maven-plantuml-plugin.version>
    <rugged.plantuml.version>7999</rugged.plantuml.version>
    <rugged.maven-site-plugin.version>3.4</rugged.maven-site-plugin.version>
    <rugged.findbugs-maven-plugin.version>3.0.0</rugged.findbugs-maven-plugin.version>
    <rugged.maven-surefire-plugin.version>2.18</rugged.maven-surefire-plugin.version>
    <rugged.maven-surefire-report-plugin.version>2.18</rugged.maven-surefire-report-plugin.version>
    <rugged.maven-checkstyle-plugin.version>2.13</rugged.maven-checkstyle-plugin.version>
    <rugged.maven-changes-plugin.version>2.11</rugged.maven-changes-plugin.version>
    <rugged.maven-jxr-plugin.version>2.5</rugged.maven-jxr-plugin.version>
    <rugged.maven-javadoc-plugin.version>2.10.1</rugged.maven-javadoc-plugin.version>
    <rugged.maven-source-plugin.version>2.4</rugged.maven-source-plugin.version>

    <rugged.maven-project-info-reports-plugin.version>2.7</rugged.maven-project-info-reports-plugin.version>
  </properties>

  <developers>
    <developer>
      <name>Luc Maisonobe</name>
      <id>luc</id>
      <roles>
        <role>architect</role>
        <role>developer</role>
      </roles>
    </developer>
  </developers>

  <contributors>
    <contributor>
      <name>Lucian Barbulescu</name>
    </contributor>
    <contributor>
      <name>Silvia R&#237;os Berganti&#241;os</name>
    </contributor>
    <contributor>
      <name>Francesco Coccoluto</name>
    </contributor>
    <contributor>
      <name>Aude Espesset</name>
    </contributor>
    <contributor>
      <name>Marina Ludwig</name>
    </contributor>
    <contributor>
      <name>Beatriz Salazar</name>
    </contributor>
  </contributors>

  <organization>
    <name>CS Syst&#232;mes d&#039;Information</name>
    <url>http://www.c-s.fr/</url>
  </organization>

  <licenses>
    <license>
      <name>The Apache Software License, Version 2.0</name>
      <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
    </license>
  </licenses>

  <scm>
    <connection>scm:git:https://www.orekit.org/git/rugged-main.git</connection>
    <developerConnection>scm:git:ssh://git@www.orekit.org/rugged-main.git</developerConnection>
    <url>https://www.orekit.org/forge/projects/rugged/repository</url>
  </scm>

  <issueManagement>
      <system>Redmine</system>
      <url>https://www.orekit.org/forge/projects/rugged/issues</url>
  </issueManagement>

  <mailingLists>
    <mailingList>
      <name>Shared Orekit/Rugged announces mailing list</name>
      <subscribe>https://www.orekit.org/wws/subscribe/orekit-announces</subscribe>
      <unsubscribe>https://www.orekit.org/wws/signoff/orekit-announces</unsubscribe>
      <archive>https://www.orekit.org/wws/arc/orekit-announces</archive>
    </mailingList>
    <mailingList>
      <name>Rugged users mailing list</name>
      <subscribe>https://www.orekit.org/wws/subscribe/rugged-users</subscribe>
      <unsubscribe>https://www.orekit.org/wws/signoff/rugged-users</unsubscribe>
      <post>rugged-users@orekit.org</post>
      <archive>https://www.orekit.org/wws/arc/rugged-users</archive>
    </mailingList>
    <mailingList>
      <name>Rugged developers mailing list</name>
      <subscribe>https://www.orekit.org/wws/subscribe/rugged-developers</subscribe>
      <unsubscribe>https://www.orekit.org/wws/signoff/rugged-developers</unsubscribe>
      <post>rugged-developers@orekit.org</post>
      <archive>https://www.orekit.org/wws/arc/rugged-developers</archive>
    </mailingList>
  </mailingLists>

  <distributionManagement>
    <site>
      <id>rugged.website</id>
      <name>Rugged Website</name>
      <url>https://www.orekit.org/rugged/static/</url>
    </site>
  </distributionManagement>

  <dependencies>
    <dependency>
        <groupId>org.orekit</groupId>
        <artifactId>orekit</artifactId>
        <version>7.0-SNAPSHOT</version>
        <type>jar</type>
        <optional>false</optional>
    </dependency>
    <dependency>
        <groupId>org.apache.commons</groupId>
        <artifactId>commons-math3</artifactId>
        <version>3.3</version>
        <type>jar</type>
        <optional>false</optional>
    </dependency>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <type>jar</type>
      <scope>test</scope>
      <optional>false</optional>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>${rugged.maven-compiler-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jar-plugin</artifactId>
        <version>${rugged.maven-jar-plugin.version}</version>
        <configuration>
          <archive>
            <manifest>
              <addClasspath>true</addClasspath>
              <classpathPrefix>lib/</classpathPrefix>
            </manifest>
          </archive>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-assembly-plugin</artifactId>
        <version>${rugged.maven-assembly-plugin.version}</version>
        <configuration>
          <descriptors>
            <descriptor>src/assembly/source-assembly.xml</descriptor>
            <descriptor>src/assembly/binary-assembly.xml</descriptor>
          </descriptors>
        </configuration>
        <executions>
          <execution>
            <id>make-assembly</id>
            <phase>package</phase>
            <goals>
              <goal>single</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-resources-plugin</artifactId>
        <version>${rugged.maven-resources-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-clean-plugin</artifactId>
        <version>${rugged.maven-clean-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>${rugged.jacoco-maven-plugin.version}</version>
        <executions>
          <execution>
            <id>prepare-agent</id>
            <phase>process-test-classes</phase>
            <goals>
              <goal>prepare-agent</goal>
            </goals>
          </execution>
          <execution>
            <id>report</id>
            <phase>site</phase>
            <goals>
              <goal>report</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>${rugged.maven-site-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>com.github.jeluard</groupId>
        <artifactId>maven-plantuml-plugin</artifactId>
        <version>${rugged.maven-plantuml-plugin.version}</version>
        <configuration>
          <sourceFiles>
            <directory>${basedir}</directory>
            <includes>
              <include>
                design/**/*.puml
              </include>
            </includes>
          </sourceFiles>
          <outputDirectory>${basedir}/target/site/images/design</outputDirectory>
        </configuration>
        <executions>
          <execution>
            <phase>pre-site</phase>
            <goals>
              <goal>generate</goal>
            </goals>
          </execution>
        </executions>
        <dependencies>
          <dependency>
            <groupId>net.sourceforge.plantuml</groupId>
            <artifactId>plantuml</artifactId>
            <version>${rugged.plantuml.version}</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>${rugged.maven-bundle-plugin.version}</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Export-Package>org.orekit.rugged.api.*;version=${project.version};-noimport:=true</Export-Package>
            <Bundle-DocURL>${project.url}</Bundle-DocURL>
          </instructions>
        </configuration>
        <executions>
          <execution>
            <id>bundle-manifest</id>
            <phase>process-classes</phase>
            <goals>
              <goal>manifest</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <reporting>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-site-plugin</artifactId>
        <version>${rugged.maven-site-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-project-info-reports-plugin</artifactId>
        <version>${rugged.maven-project-info-reports-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>findbugs-maven-plugin</artifactId>
        <version>${rugged.findbugs-maven-plugin.version}</version>
        <configuration>
          <threshold>Normal</threshold>
          <effort>Default</effort>
          <excludeFilterFile>${basedir}/findbugs-exclude-filter.xml</excludeFilterFile>
       </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-plugin</artifactId>
        <version>${rugged.maven-surefire-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-surefire-report-plugin</artifactId>
        <version>${rugged.maven-surefire-report-plugin.version}</version>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin</artifactId>
        <version>${rugged.maven-checkstyle-plugin.version}</version>
        <configuration>
          <configLocation>${basedir}/checkstyle.xml</configLocation>
          <enableRulesSummary>false</enableRulesSummary>
          <headerLocation>${basedir}/license-header.txt</headerLocation>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-changes-plugin</artifactId>
        <version>${rugged.maven-changes-plugin.version}</version>
        <configuration>
          <xmlPath>${basedir}/src/site/xdoc/changes.xml</xmlPath>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>changes-report</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-jxr-plugin</artifactId>
        <version>${rugged.maven-jxr-plugin.version}</version>
        <configuration>
          <linkJavadoc>false</linkJavadoc>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>${rugged.maven-javadoc-plugin.version}</version>
        <configuration>
          <overview>${basedir}/core/src/main/java/org/orekit/rugged/overview.html</overview>
          <links>
            <link>http://download.oracle.com/javase/1.6.0/docs/api/</link>
            <link>http://commons.apache.org/math/apidocs/</link>
            <link>https://www.orekit.org/static/apidocs/</link>
          </links>
          <charset>${project.reporting.outputEncoding}</charset>
        </configuration>
        <reportSets>
          <reportSet>
            <reports>
              <report>javadoc</report>
            </reports>
          </reportSet>
        </reportSets>
      </plugin>
      <plugin>
        <groupId>org.jacoco</groupId>
        <artifactId>jacoco-maven-plugin</artifactId>
        <version>${rugged.jacoco-maven-plugin.version}</version>
      </plugin>
    </plugins>
  </reporting>

  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
           <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>${rugged.maven-source-plugin.version}</version>
            <executions>
              <execution>
                <id>create-source-jar</id>
                <goals>
                  <goal>jar</goal>
                </goals>
                <phase>package</phase>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
  </profiles>

</project>