<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>vu.nl.iref</groupId>
   <artifactId>IREFtools</artifactId>
   <version>0.2</version>
   <packaging>jar</packaging>
   <name>IREFtools</name>
   <url>http://iref.nl.vu</url>

   <licenses>
      <license>
         <name>The Apache Software License, Version 2.0</name>
         <url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
         <distribution>repo</distribution>
      </license>
   </licenses>
  
   <properties>
      <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
   </properties>
  
   <scm>
      <connection>scm:git:git@github.com:jeroenvuurens/iref.tools.git</connection>
      <developerConnection>scm:git:git@github.com:jeroenvuurens/iref.tools.git</developerConnection>
      <url>git@github.com:jeroenvuurens/iref.tools.git</url>
   </scm>
  
   <developers>
      <developer>
         <id>jeroenvuurens</id>
         <name>Jeroen Vuurens</name>
         <email>jbpvuurens@gmail.com</email>
      </developer>
   </developers>

  <parent>
    <groupId>org.sonatype.oss</groupId>
    <artifactId>oss-parent</artifactId>
    <version>7</version>
  </parent>

  <profiles>
      <profile> <!-- compile ByteRegex grammar with antlr, only needed when changed -->
         <id>compilegrammar</id>
         <build>
            <plugins>
               <plugin>
                  <groupId>org.antlr</groupId>
                  <artifactId>antlr4-maven-plugin</artifactId>
                  <version>4.1</version>
                  <configuration>
                     <sourceDirectory>${basedir}/src/main/java/vu/nl/iref/tools/ByteRegex</sourceDirectory>
                     <outputDirectory>${basedir}/src/main/java/vu/nl/iref/tools/ByteRegex</outputDirectory>
                  </configuration>
                  <executions>
                     <execution>
                        <goals>
                           <goal>antlr4</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build> 
      </profile>
      <profile> <!-- create javadoc and source JAR's for release -->
         <id>createrelease</id>
         <build>
            <plugins>
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-source-plugin</artifactId>
                  <version>2.2</version>
                  <executions>
                     <execution>
                        <id>attach-sources</id>
                        <goals>
                           <goal>jar</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
               <plugin>
                  <groupId>org.apache.maven.plugins</groupId>
                  <artifactId>maven-javadoc-plugin</artifactId>
                  <version>2.9</version>
                  <executions>
                     <execution>
                        <id>attach-javadocs</id>
                        <goals>
                           <goal>jar</goal>
                        </goals>
                     </execution>
                  </executions>
               </plugin>
            </plugins>
         </build>
      </profile>
   </profiles>
  
   <build>
      <plugins>
         <plugin> <!-- use with antrun:run to upload, change settings for your server -->
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-antrun-plugin</artifactId>
            <version>1.7</version>
            <configuration>
               <target>  
                  <echo message="${project.build.directory}/${project.build.finalName}.jar" />
                  <scp todir="jeroenv@login.alley.sara.nl:/home/jeroenv/iref/lib" keyfile="C:/cygwin/home/jeroen/.ssh/id_rsa" trust="true" failonerror="false" file="${project.build.directory}/${project.build.finalName}.jar">
                  </scp>
               </target>
            </configuration>
            <dependencies>
               <dependency>
                  <groupId>org.apache.ant</groupId>
                  <artifactId>ant-jsch</artifactId>
                  <version>1.9.1</version>
               </dependency>
               <dependency>
                  <groupId>com.jcraft</groupId>
                  <artifactId>jsch</artifactId>
                  <version>0.1.50</version>
               </dependency>
            </dependencies>
         </plugin>
      </plugins>
   </build> 
  
   <dependencies>
      <dependency>
         <groupId>org.apache.hadoop</groupId>
         <artifactId>hadoop-core</artifactId>
         <version>0.20.2</version>
         <exclusions>
            <exclusion>
               <artifactId>ant</artifactId>
               <groupId>ant</groupId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.apache.commons</groupId>
         <artifactId>commons-compress</artifactId>
         <version>1.0</version>
         <type>jar</type>
      </dependency>
      <dependency>
         <groupId>org.apache.poi</groupId>
         <artifactId>poi</artifactId>
         <version>3.9</version>
      </dependency>
      <dependency>
         <groupId>org.apache.poi</groupId>
         <artifactId>poi-ooxml</artifactId>
         <version>3.9</version>
      </dependency>
      <dependency>
         <groupId>org.apache.maven.surefire</groupId>
         <artifactId>surefire-junit4</artifactId>
         <version>2.15</version>
      </dependency>
      <dependency>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.1</version>
         <scope>test</scope>
      </dependency>
      <dependency>
         <groupId>org.antlr</groupId>
         <artifactId>antlr4-maven-plugin</artifactId>
         <version>4.1</version>
         <exclusions>
            <exclusion>
               <artifactId>antlr</artifactId>
               <groupId>antlr</groupId>
            </exclusion>
            <exclusion>
               <artifactId>antlr-runtime</artifactId>
               <groupId>org.antlr</groupId>
            </exclusion>
         </exclusions>
      </dependency>
      <dependency>
         <groupId>org.antlr</groupId>
         <artifactId>antlr4-runtime</artifactId>
         <version>4.1</version>
         <type>jar</type>
      </dependency>
      <dependency>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-antrun-plugin</artifactId>
         <version>1.7</version>
      </dependency>
   </dependencies>
</project>
