Tuesday, 23 May 2017

1

<?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">
<parent>
<groupId>com.paypal.pps</groupId>
<artifactId>ppsraptorbackend</artifactId>
<version>2.0.13_SNAPSHOT</version>
<relativePath>..</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>ppsraptorbackendService</artifactId>
<packaging>jar</packaging>
<properties>
<connectorautomationutils.version>1.2.2-RELEASE</connectorautomationutils.version>
<testng.suitexml>src/test/resources/suites/TestSuite.xml</testng.suitexml>
<skipTests>false</skipTests>
</properties>
<dependencyManagement>
<dependencies>
<dependency>
       <groupId>org.jpos</groupId>
       <artifactId>jpos</artifactId>
       <version>2.0.4</version>
     </dependency>    
</dependencies>
</dependencyManagement>
<dependencies>
<!-- APPLICATION DEPENDENCIES -->
<!-- Third party dependencies needed -->

<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jms</artifactId>
</dependency>
<!-- These are your PayPal specific framework dependecies -->
<!-- This is the PayPal ready REST Engine, server AND client -->
<dependency>
<groupId>com.ebayinc.platform.services</groupId>
<artifactId>rest-profile-paypal</artifactId>
<type>pom</type>
</dependency>
<!-- This is your ASF client engine -->
<dependency>
<groupId>com.ebayinc.platform.services</groupId>
<artifactId>asf-profile</artifactId>
<type>pom</type>
</dependency>
<!-- Raptor platform artifacts -->

<dependency>
<groupId>com.paypal.raptor.springboot</groupId>
<artifactId>spring-boot-starter-raptor-ppaas</artifactId>
</dependency>
<dependency>
<groupId>xml-apis</groupId>
<artifactId>xml-apis</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-core</artifactId>
</dependency>
<dependency>
<groupId>com.paypal.pps.connector.test</groupId>
<artifactId>ConnectorAutomationUtils</artifactId>
<version>${connectorautomationutils.version}</version>
<scope>test</scope>
<exclusions>
<exclusion>
<artifactId>tomcat-embed-core</artifactId>
<groupId>org.apache.tomcat.embed</groupId>
</exclusion>
<exclusion>
<artifactId>tomcat-catalina</artifactId>
<groupId>org.apache.tomcat</groupId>
</exclusion>
<exclusion>
<artifactId>catalina</artifactId>
<groupId>org.apache.tomcat</groupId>
</exclusion>
<exclusion>
<artifactId>activemq-all</artifactId>
<groupId>org.apache.activemq</groupId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.apache.activemq</groupId>
<artifactId>activemq-client</artifactId>
</dependency>
   <dependency>
<groupId>com.paypal.csl</groupId>
<artifactId>CSLModel</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.paypal.csl</groupId>
<artifactId>CSLLibrary</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.paypal.csl</groupId>
<artifactId>CSLClient</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.paypal.csl</groupId>
<artifactId>SwitchFrameworkModel</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.testng</groupId>
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-json-provider</artifactId>
</dependency>
<dependency>
<groupId>org.mongodb</groupId>
<artifactId>mongo-java-driver</artifactId>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
</dependency>
<dependency>
<groupId>com.paypal.simulator</groupId>
<artifactId>SimulatorPlatform</artifactId>
<version>1.0.31-RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-all</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
<scope>test</scope>
</dependency>
<dependency>
       <artifactId>commons</artifactId>
       <version>1.1.3</version>
       <groupId>com.paypal.usf</groupId>
       <scope>compile</scope>
</dependency>

<dependency>
<groupId>com.paypal.piivalidator</groupId>
<artifactId>PIIValidatorPlatform</artifactId>
<version>1.0.4-RELEASE</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.paypal.pps.switchutils</groupId>
<artifactId>switch-utils</artifactId>
<version>3.0.34-RELEASE</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<resources>
  <resource>
  <directory>./../ppsraptorbackendService/src/main/resources</directory>
  </resource>
  </resources>
<testSourceDirectory>src/test/java</testSourceDirectory>
<plugins>
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>${skipTests}</skip>
                    <argLine>${surefireArgLine}</argLine>
                </configuration>
            </plugin>
<plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-failsafe-plugin</artifactId>
                <version>2.13</version>
                    <configuration>
                        <argLine>${failsafeArgLine}</argLine>
                        <suiteXmlFiles>
                           <suiteXmlFile>${testng.suitexml}</suiteXmlFile>
                        </suiteXmlFiles>
                        <argLine>-Xmx2048m -XX:MaxPermSize=1024m ${failsafeArgLine}</argLine>
                    </configuration>
                    <executions>
                        <execution>
                        <id>IT</id>
                            <phase>integration-test</phase>
                            <goals>
                                <goal>integration-test</goal>
                            </goals>
                    </execution>
                        <execution>
                        <id>verify</id>
                            <phase>verify</phase>
                            <goals>
                                <goal>verify</goal>
                            </goals>
                    </execution>
                    </executions>
            </plugin>
  <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
            </plugin>
            <plugin>
                <groupId>org.codehaus.mojo</groupId>
                <artifactId>build-helper-maven-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-resources-plugin</artifactId>
            </plugin>

            <plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-dependency-plugin</artifactId>
   <executions>
       <execution>
         <id>resource-dependencies</id>
         <phase>process-test-resources</phase>
         <goals>
           <goal>unpack-dependencies</goal>
         </goals>
         <configuration>
           <includeArtifactIds>PIIValidatorPlatform</includeArtifactIds>
           <includes>**\/*.js,**\/*.css</includes>
           <outputDirectory>target/surefire-reports</outputDirectory>
         </configuration>
       </execution>
   </executions>
</plugin>

            <plugin>
                <groupId>com.paypal.raptor.plugins</groupId>
                <artifactId>connectivity-maven-plugin</artifactId>
            </plugin>

            <plugin>
                <groupId>com.ebay.raptor.build</groupId>
                <artifactId>assembler-maven-plugin</artifactId>
                <configuration>
                    <deploymentType>mid-tier</deploymentType>
                    <appPackages>
                        <cronusPackage>
                            <name>ppsraptorbackend</name>
                            <version>${project.version}_{timestamp}</version>
                            <sources>
                                <source>${basedir}/target/app</source>
                            </sources>
                        </cronusPackage>
                    </appPackages>
                </configuration>
            </plugin>

            <plugin>
                <groupId>com.ebay.raptor.build</groupId>
                <artifactId>metadata-maven-plugin</artifactId>
            </plugin>

           
<plugin>
   <groupId>org.apache.maven.plugins</groupId>
   <artifactId>maven-pmd-plugin</artifactId>
<configuration>
 <failOnViolation>true</failOnViolation>
 <failurePriority>2</failurePriority>
 <rulesets>
 <!-- Custom local file system rule set -->
 <ruleset>${project.basedir}/src/test/resources/rulesets/custom-pmd-rules.xml</ruleset>
 </rulesets>
</configuration>
<executions>
<execution>
     <goals>
      <goal>check</goal>
     </goals>
</execution>
</executions>
</plugin>
<plugin>
                <groupId>org.jacoco</groupId>
                <artifactId>jacoco-maven-plugin</artifactId>
                <version>${jacoco.maven.plugin.version}</version>
                <executions>
                    <execution>
                        <id>pre-unit-test</id>
                        <goals>
                            <goal>prepare-agent</goal>
                        </goals>
                        <configuration>
                            <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
                            <propertyName>surefireArgLine</propertyName>
                        </configuration>
                    </execution>
                    <execution>
                            <id>pre-integration-test</id>
                            <phase>pre-integration-test</phase>
                            <goals>
                                <goal>prepare-agent</goal>
                            </goals>
                            <configuration>
                                <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile>
                                <propertyName>failsafeArgLine</propertyName>
                            </configuration>
                        </execution>
                       
                        <execution>
                            <id>post-integration-test</id>
                            <phase>post-integration-test</phase>
                            <goals>
                                <goal>report</goal>
                            </goals>
                            <configuration>
                                <dataFile>${project.build.directory}/coverage-reports/jacoco-it.exec</dataFile>
                                <excludes>
                           <exclude>**/com/paypal/pps/raptor/backend/init/*</exclude>
<exclude>**/com/paypal/pps/raptor/backend/resources/*</exclude>
<exclude>**/FdmsNorthIso8583Constant.*</exclude>
<exclude>**/FdmsNorthSubFieldPackager.*</exclude>
<exclude>**/FdmsNorthFitPackger.*</exclude>
<exclude>**/TldPackager.*</exclude>
<exclude>**/TldStringFieldPackager.*</exclude>
                                </excludes>
                                <outputDirectory>${project.reporting.outputDirectory}/jacoco-it</outputDirectory>
                            </configuration>
                        </execution>
                       
                    <execution>
                        <id>post-unit-test</id>
                         <phase>test</phase>
                        <goals>
                            <goal>report</goal>
                        </goals>
                        <configuration>
                            <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
                            <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
                             <excludes>
                           <exclude>**/com/paypal/pps/raptor/backend/init/*</exclude>
<exclude>**/com/paypal/pps/raptor/backend/resources/*</exclude>
<exclude>**/FdmsNorthIso8583Constant.*</exclude>
<exclude>**/FdmsNorthSubFieldPackager.*</exclude>
<exclude>**/FdmsNorthFitPackger.*</exclude>
<exclude>**/TldPackager.*</exclude>
<exclude>**/TldStringFieldPackager.*</exclude>
                                </excludes>
                        </configuration>
                    </execution>
                </executions>
            </plugin>          
</plugins>
</build>
</project>