Saturday, August 13, 2016

sample pom

<?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>  
   <groupId>com.mridul.auotmation.webservices</groupId>  
   <artifactId>WeatherAPI</artifactId>  
   <version>1.0-SNAPSHOT</version>  
   <properties>  
     <java>1.8</java>  
     <maven.compiler>3.5.1</maven.compiler>  
     <maven.failsafe>2.19.1</maven.failsafe>  
     <maven.failsafe.parallel>methods</maven.failsafe.parallel>  
     <maven.failsafe.threadcount>10</maven.failsafe.threadcount>  
     <apache.cxf>3.1.7</apache.cxf>  
     <serenity.core>1.1.36</serenity.core>  
     <serenity.maven.plugin>1.1.36</serenity.maven.plugin>  
     <serenity.junit>1.1.36</serenity.junit>  
     <serenity.spring>1.1.36</serenity.spring>  
     <google.guava>19.0</google.guava>  
     <spring.boot.web>1.4.0.RELEASE</spring.boot.web>  
   </properties>  
   <dependencies>  
     <!--core java specific libraries-->  
     <!-- https://mvnrepository.com/artifact/com.google.guava/guava -->  
     <dependency>  
       <groupId>com.google.guava</groupId>  
       <artifactId>guava</artifactId>  
       <version>${google.guava}</version>  
     </dependency>  
     <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot -->  
     <!-- https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-web -->  
     <dependency>  
       <groupId>org.springframework.boot</groupId>  
       <artifactId>spring-boot-starter-web</artifactId>  
       <version>${spring.boot.web}</version>  
     </dependency>  
     <!-- https://mvnrepository.com/artifact/org.apache.cxf/cxf-rt-frontend-jaxrs -->  
     <dependency>  
       <groupId>org.apache.cxf</groupId>  
       <artifactId>cxf-rt-frontend-jaxrs</artifactId>  
       <version>${apache.cxf}</version>  
     </dependency>  
     <!--Serenity plugins-->  
     <!-- https://mvnrepository.com/artifact/net.serenity-bdd/serenity-core -->  
     <dependency>  
       <groupId>net.serenity-bdd</groupId>  
       <artifactId>serenity-core</artifactId>  
       <version>${serenity.core}</version>  
     </dependency>  
     <!-- https://mvnrepository.com/artifact/net.serenity-bdd/serenity-junit -->  
     <dependency>  
       <groupId>net.serenity-bdd</groupId>  
       <artifactId>serenity-junit</artifactId>  
       <version>${serenity.junit}</version>  
     </dependency>  
     <!-- https://mvnrepository.com/artifact/net.serenity-bdd/serenity-spring -->  
     <dependency>  
       <groupId>net.serenity-bdd</groupId>  
       <artifactId>serenity-spring</artifactId>  
       <version>${serenity.spring}</version>  
     </dependency>  
     <!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-failsafe-plugin -->  
     <dependency>  
       <groupId>org.apache.maven.plugins</groupId>  
       <artifactId>maven-failsafe-plugin</artifactId>  
       <version>${maven.failsafe}</version>  
     </dependency>  
   </dependencies>  
   <build>  
     <plugins>  
       <plugin>  
         <groupId>org.apache.maven.plugins</groupId>  
         <artifactId>maven-compiler-plugin</artifactId>  
         <version>${maven.compiler}</version>  
         <configuration>  
           <source>${java}</source>  
           <target>${java}</target>  
         </configuration>  
       </plugin>  
       <plugin>  
         <groupId>org.apache.maven.plugins</groupId>  
         <artifactId>maven-failsafe-plugin</artifactId>  
         <version>${maven.failsafe}</version>  
         <configuration>  
           <parallel>${maven.failsafe.parallel}</parallel>  
           <threadCount>${maven.failsafe.threadcount}</threadCount>  
           <includes>  
             <include>**/features/**/When*.java</include>  
           </includes>  
         </configuration>  
       </plugin>  
       <plugin>  
         <groupId>net.serenity-bdd.maven.plugins</groupId>  
         <artifactId>serenity-maven-plugin</artifactId>  
         <version>${serenity.maven.plugin}</version>  
         <executions>  
           <execution>  
             <id>serenity-reports</id>  
             <phase>post-integration-test</phase>  
             <goals>  
               <goal>aggregate</goal>  
             </goals>  
           </execution>  
         </executions>  
       </plugin>  
     </plugins>  
   </build>  
 </project>  

No comments:

Post a Comment