<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>com.afklm</groupId>
  <artifactId>mashery-sdk</artifactId>
  <packaging>jar</packaging>
  <name>${project.groupId}:${project.artifactId}</name>
  <description>SDK built on top of Intel-Mashery's V3 API.</description>
  <url>https://github.com/afklm/mashery-sdk</url>
  <version>1.0.12</version>
    <licenses>
    <license>
      <name>MIT License</name>
      <url>http://www.opensource.org/licenses/mit-license.php</url>
    </license>
  </licenses>
  <developers>
    <developer>
      <name>Ian Crosby</name>
      <email>ian.crosby@klm.com</email>
      <organization>KLM</organization>
      <organizationUrl>https://github.com/afklm</organizationUrl>
    </developer>
  </developers>
  <scm>
    <connection>scm:git:git@github.com:afklm/mashery-sdk.git</connection>
    <developerConnection>scm:git:git@github.com:afklm/mashery-sdk.git</developerConnection>
    <url>git@github.com:afklm/mashery-sdk.git</url>
  </scm>
  
  <dependencies>
  	<dependency>
  	  	<groupId>org.apache.httpcomponents</groupId>
  	  	<artifactId>httpclient</artifactId>
  	  	<version>4.2.1</version>
  	</dependency>
  	<dependency>
          <groupId>org.slf4j</groupId>
          <artifactId>slf4j-api</artifactId>
          <version>1.7.2</version>
          <type>jar</type>
      </dependency>
  	<dependency>
      	<groupId>com.fasterxml.jackson.core</groupId>
      	<artifactId>jackson-core</artifactId>
      	<version>2.4.0</version>
      </dependency>
  	<dependency>
    	  <groupId>com.fasterxml.jackson.core</groupId>
    	  <artifactId>jackson-annotations</artifactId>
    	  <version>2.4.0</version>
  	</dependency>
  	<dependency>
    	  <groupId>com.fasterxml.jackson.core</groupId>
    	  <artifactId>jackson-databind</artifactId>
    	  <version>2.3.3</version>
  	</dependency>
      <dependency>
        <groupId>junit</groupId>
        <artifactId>junit</artifactId>
        <version>4.11</version>
        <scope>test</scope>
      </dependency>
      <dependency>
        <groupId>org.apache.httpcomponents</groupId>
        <artifactId>httpclient</artifactId>
        <version>4.0.1</version>
        <classifier>tests</classifier>
        <scope>test</scope>
      </dependency>
      <dependency>
  	  <groupId>org.apache.commons</groupId>
  	  <artifactId>commons-io</artifactId>
  	  <version>1.3.2</version>
  	</dependency>
      <dependency>
        <groupId>org.mockito</groupId>
  	  <artifactId>mockito-all</artifactId>
  	  <version>1.9.5</version>
  	  <scope>test</scope>
  	</dependency>    
  </dependencies>

  <distributionManagement>
    <snapshotRepository>
      <id>ossrh</id>
      <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    </snapshotRepository>
  </distributionManagement>
  <build>
    <plugins>
      <plugin>
        <groupId>org.sonatype.plugins</groupId>
        <artifactId>nexus-staging-maven-plugin</artifactId>
        <version>1.6.3</version>
        <extensions>true</extensions>
        <configuration>
          <serverId>ossrh</serverId>
          <nexusUrl>https://oss.sonatype.org/</nexusUrl>
          <autoReleaseAfterClose>true</autoReleaseAfterClose>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-source-plugin</artifactId>
        <version>2.2.1</version>
        <executions>
          <execution>
            <id>attach-sources</id>
            <goals>
              <goal>jar-no-fork</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.9.1</version>
        <executions>
          <execution>
            <id>attach-javadocs</id>
            <goals>
              <goal>jar</goal>
            </goals>
          </execution>
        </executions>
      </plugin>
    </plugins>
  </build>

  <profiles>
    <profile>
      <id>release</id>
      <build>
        <plugins>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-source-plugin</artifactId>
            <version>2.2.1</version>
            <executions>
              <execution>
                <id>attach-sources</id>
                <goals>
                  <goal>jar-no-fork</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-javadoc-plugin</artifactId>
            <executions>
              <execution>
                <id>attach-javadocs</id>
                <goals>
                  <goal>jar</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
          <plugin>
            <groupId>org.apache.maven.plugins</groupId>
            <artifactId>maven-gpg-plugin</artifactId>
            <version>1.5</version>
            <executions>
              <execution>
                <id>sign-artifacts</id>
                <phase>verify</phase>
                <goals>
                  <goal>sign</goal>
                </goals>
              </execution>
            </executions>
          </plugin>
        </plugins>
      </build>
    </profile>
    <profile>
	<id>emma</id>
	<dependencies>
	  <dependency>
            <groupId>emma</groupId>
            <artifactId>emma</artifactId>
            <type>jar</type>
            <scope>compile</scope>
            <version>2.1.5320</version>
          </dependency> 
	</dependencies>
	<build>
          <plugins>     
            <plugin>      
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>emma-maven-plugin</artifactId>
              <version>1.0-alpha-3</version>
              <inherited>true</inherited>          
              <executions>
                <execution>
                  <phase>process-classes</phase>               
                  <goals>
                    <goal>instrument</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>
            <plugin>
              <groupId>org.apache.maven.plugins</groupId>
              <artifactId>maven-surefire-plugin</artifactId>
              <inherited>true</inherited>
              <configuration>
                <forkMode>once</forkMode>
                <reportFormat>xml</reportFormat>
                <classesDirectory>${project.build.directory}/generated-classes/emma/classes</classesDirectory>    
              </configuration>        
            </plugin>
          </plugins>
        </build>
        <reporting>    
          <plugins>  
            <plugin>      
              <groupId>org.codehaus.mojo</groupId>
              <artifactId>emma-maven-plugin</artifactId>
              <version>1.0-alpha-3</version>
              <inherited>true</inherited>          
            </plugin>
            <plugin> 
              <groupId>org.codehaus.mojo</groupId> 
              <artifactId>surefire-report-maven-plugin</artifactId> 
              <inherited>true</inherited>
            </plugin>       
          </plugins>      
        </reporting>  
    </profile>
  </profiles>
</project>
