<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>

   <groupId>com.github.athieriot</groupId>
   <artifactId>jtaches</artifactId>
   <version>1.0.0</version>
   <packaging>jar</packaging>

   <parent>
      <groupId>org.sonatype.oss</groupId>
      <artifactId>oss-parent</artifactId>
      <version>7</version>
   </parent>

   <name>jtaches</name>
   <url>https://github.com/athieriot/JTaches</url>
   <scm>
      <connection>scm:git:git@github.com:athieriot/JTaches.git</connection>
      <developerConnection>scm:git:git@github.com:athieriot/JTaches.git</developerConnection>
      <url>git@github.com:athieriot/JTaches.git</url>
   </scm>

   <licenses>
      <license>
         <name>GNU GENERAL PUBLIC LICENSE, Version 3</name>
         <url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
         <distribution>repo</distribution>
      </license>
   </licenses>
   <developers>
      <developer>
         <id>a.thieriot</id>
         <name>Aurélien Thieriot</name>
         <email>a.thieriot@gmail.com</email>
      </developer>
   </developers>

   <properties>
      <!-- General -->
      <java.version>1.7</java.version>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
      <main.class>com.github.athieriot.jtaches.Command</main.class>

      <!-- Libraries -->
      <guava.version>13.0</guava.version>
      <jcommander.version>1.29</jcommander.version>
      <snakeyaml.version>1.10</snakeyaml.version>
      <commons-lang.version>3.1</commons-lang.version>
      <minlog.version>1.2</minlog.version>

      <!-- Tests -->
      <testng.version>6.7</testng.version>
      <mockito.version>1.9.5-rc1</mockito.version>

      <!-- Plugins -->
      <maven.compiler.version>2.3.2</maven.compiler.version>
      <exec.maven.version>1.2.1</exec.maven.version>
      <maven.assembly.version>2.3</maven.assembly.version>
      <maven.surefire.version>2.12</maven.surefire.version>
   </properties>

   <build>
      <plugins>
         <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-compiler-plugin</artifactId>
            <version>${maven.compiler.version}</version>
            <configuration>
               <source>${java.version}</source>
               <target>${java.version}</target>
            </configuration>
         </plugin>
         <plugin>
            <groupId>org.codehaus.mojo</groupId>
            <artifactId>exec-maven-plugin</artifactId>
            <version>${exec.maven.version}</version>
            <executions>
               <execution>
                  <goals>
                     <goal>java</goal>
                  </goals>
               </execution>
            </executions>
            <configuration>
               <mainClass>${main.class}</mainClass>
            </configuration>
         </plugin>
         <plugin>
            <artifactId>maven-assembly-plugin</artifactId>
            <version>${maven.assembly.version}</version>
            <configuration>
               <descriptorRefs>
                  <descriptorRef>jar-with-dependencies</descriptorRef>
               </descriptorRefs>
               <archive>
                  <manifest>
                     <mainClass>${main.class}</mainClass>
                  </manifest>
               </archive>
            </configuration>
            <executions>
               <execution>
                  <id>make-assembly</id>
                  <phase>package</phase>
                  <goals>
                     <goal>single</goal>
                  </goals>
               </execution>
            </executions>
         </plugin>
         <!-- FIXME: At the first occasion, this Java7 issue with cobertura must be throw away  -->
         <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-surefire-plugin</artifactId>
             <version>${maven.surefire.version}</version>
             <configuration>
                 <argLine>-XX:-UseSplitVerifier</argLine>
             </configuration>
         </plugin>
      </plugins>
   </build>

    <dependencies>
        <!-- Libraries -->
        <dependency>
           <groupId>com.google.guava</groupId>
           <artifactId>guava</artifactId>
           <version>${guava.version}</version>
        </dependency>
        <dependency>
            <groupId>com.beust</groupId>
            <artifactId>jcommander</artifactId>
            <version>${jcommander.version}</version>
        </dependency>
        <dependency>
            <groupId>org.yaml</groupId>
            <artifactId>snakeyaml</artifactId>
            <version>${snakeyaml.version}</version>
        </dependency>
        <dependency>
            <groupId>org.apache.commons</groupId>
            <artifactId>commons-lang3</artifactId>
            <version>${commons-lang.version}</version>
        </dependency>
        <dependency>
            <groupId>com.googlecode</groupId>
            <artifactId>minlog</artifactId>
            <version>${minlog.version}</version>
        </dependency>
        <!-- Tests -->
        <dependency>
            <groupId>org.testng</groupId>
            <artifactId>testng</artifactId>
            <version>${testng.version}</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.mockito</groupId>
            <artifactId>mockito-all</artifactId>
            <version>${mockito.version}</version>
            <scope>test</scope>
        </dependency>
    </dependencies>
</project>
