<?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/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>org.sonatype.oss</groupId>
        <artifactId>oss-parent</artifactId>
        <version>7</version>
    </parent>
    <groupId>net.authorize</groupId>
    <artifactId>anet-java-sdk</artifactId>
    <packaging>jar</packaging>
    <version>1.9.9</version>
    <name>Authorize.Net Java SDK</name>
    <description>Authorize.Net SDK includes standard payments, recurring billing, and customer profiles.</description>
    <url>http://developer.authorize.net</url>
    <licenses>
        <license>
            <name>SDK License Agreement</name>
            <url>https://github.com/AuthorizeNet/sdk-java/blob/master/LICENSE.txt</url>
            <distribution>repo</distribution>
        </license>
    </licenses>
    <scm>
        <connection>scm:git:https://github.com/AuthorizeNet/sdk-java.git</connection>
        <developerConnection>scm:git:https://github.com/AuthorizeNet/sdk-java.git</developerConnection>
        <url>https://github.com/AuthorizeNet/sdk-java.git</url>
    </scm>
    <developers>
        <developer>
            <id>authorizenet</id>
            <name>Authorize.Net Developer</name>
            <email>developer@authorize.net</email>
        </developer>
    </developers>
    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>4.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>commons-logging</groupId>
            <artifactId>commons-logging</artifactId>
            <version>1.1.1</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpclient</artifactId>
            <version>4.5.3</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.httpcomponents</groupId>
            <artifactId>httpcore</artifactId>
            <version>4.4.6</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>log4j</groupId>
            <artifactId>log4j</artifactId>
            <version>1.2.16</version>
            <scope>compile</scope>
        </dependency>
        <dependency>
            <groupId>org.jmock</groupId>
            <artifactId>jmock</artifactId>
            <version>2.6.0</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-core</artifactId>
            <version>1.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>org.hamcrest</groupId>
            <artifactId>hamcrest-library</artifactId>
            <version>1.3</version>
            <scope>test</scope>
        </dependency>
        <dependency>
    		<groupId>com.google.code.gson</groupId>
    		<artifactId>gson</artifactId>
    		<version>2.3.1</version>
			<scope>compile</scope>
		</dependency>    
    </dependencies>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
        <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
        <maven.compile.source>1.5</maven.compile.source>
        <maven.compile.target>1.5</maven.compile.target>
        <maven.compile.optimize>true</maven.compile.optimize>
        <maven.compile.deprecation>true</maven.compile.deprecation>
    </properties>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>2.0.2</version>
                <configuration>
                    <source>1.5</source>
                    <target>1.5</target>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>properties-maven-plugin</artifactId>
                <version>1.0-alpha-2</version>
                <!-- 
                <executions>
                    <execution>
                        <phase>initialize</phase>
                        <goals>
                            <goal>read-project-properties</goal>
                        </goals>
                        <configuration>
                            <files>
                                <file>${user.home}/anet-java-sdk.properties</file>
                            </files>
                        </configuration>
                    </execution>
                </executions>
                -->
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.9</version>
                <configuration>
                    <includes>
                        <include> **/mocktest/**.java</include>
                    </includes>
                    <skipTests>false</skipTests>
                    <forkCount>1</forkCount>
                    <systemPropertyVariables>
                        <API_LOGIN_ID>${api.login.id}</API_LOGIN_ID>
                        <TRANSACTION_KEY>${transaction.key}</TRANSACTION_KEY>
                        <MD5_HASH_KEY>${md5.hash.key}</MD5_HASH_KEY>
                    </systemPropertyVariables>
                    <environmentVariables>
                        <API_LOGIN_ID>API_LOGIN_ID</API_LOGIN_ID>
                        <TRANSACTION_KEY>TRANSACTION_KEY</TRANSACTION_KEY>
                        <MD5_HASH_KEY>MD5_HASH_KEY</MD5_HASH_KEY>
                    </environmentVariables>
                </configuration>
            </plugin>
        </plugins>
        <resources>
            <resource>
                <directory>resources</directory>
                <filtering>true</filtering>
                <includes>
                    <include>**/AuthorizedNetSensitiveTagsConfig.json</include>
                </includes>
            </resource>
            <resource>
                <directory>resources</directory>
                <filtering>false</filtering>
                <includes>
                    <include>**/*.*</include>
                </includes>
                <excludes>
                	<exclude>log4j.properties</exclude>
                </excludes>
            </resource>                   
        </resources>
    </build>
</project>
