Advertisement
Guest User

Untitled

a guest
Jan 30th, 2019
1,493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 7.28 KB | None | 0 0
  1. <project xmlns="http://maven.apache.org/POM/4.0.0"
  2.    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">
  3.     <modelVersion>4.0.0</modelVersion>
  4.     <groupId>timconze.project2</groupId>
  5.     <artifactId>project2</artifactId>
  6.     <version>1.0-SNAPSHOT</version>
  7.     <properties>
  8.         <maven.compiler.source>1.8</maven.compiler.source>
  9.         <maven.compiler.target>1.8</maven.compiler.target>
  10.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  11.     </properties>
  12.     <dependencies>
  13.         <dependency>
  14.             <groupId>junit</groupId>
  15.             <artifactId>junit</artifactId>
  16.             <version>4.12</version>
  17.             <scope>test</scope>
  18.         </dependency>
  19.         <dependency>
  20.             <groupId>org.seleniumhq.selenium</groupId>
  21.             <artifactId>selenium-java</artifactId>
  22.             <version>3.141.59</version>
  23.         </dependency>
  24.         <dependency>
  25.             <groupId>org.seleniumhq.selenium</groupId>
  26.             <artifactId>selenium-chrome-driver</artifactId>
  27.             <version>3.141.59</version>
  28.         </dependency>
  29.         <dependency>
  30.             <groupId>net.sourceforge.htmlunit</groupId>
  31.             <artifactId>htmlunit</artifactId>
  32.             <version>2.19</version>
  33.         </dependency>
  34.     </dependencies>
  35.     <build>
  36.         <pluginManagement>
  37.             <plugins>
  38.                 <plugin>
  39.                     <groupId>org.apache.maven.plugins</groupId>
  40.                     <artifactId>maven-checkstyle-plugin</artifactId>
  41.                     <version>3.0.0</version>
  42.                     <dependencies>
  43.                         <dependency>
  44.                             <groupId>com.puppycrawl.tools</groupId>
  45.                             <artifactId>checkstyle</artifactId>
  46.                             <version>8.10</version>
  47.                         </dependency>
  48.                         <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-->
  49.                         <dependency>
  50.                             <groupId>org.apache.poi</groupId>
  51.                             <artifactId>poi</artifactId>
  52.                             <version>4.0.1</version>
  53.                         </dependency>
  54.                         <!-- https://mvnrepository.com/artifact/org.apache.poi/poi-ooxml -->
  55.                         <dependency>
  56.                             <groupId>org.apache.poi</groupId>
  57.                             <artifactId>poi-ooxml</artifactId>
  58.                             <version>4.0.1</version>
  59.                         </dependency>
  60.                         <dependency>
  61.                             <groupId>com.github.ngeor</groupId>
  62.                             <artifactId>checkstyle-rules</artifactId>
  63.                             <version>1.1.0</version>
  64.                         </dependency>
  65.                     </dependencies>
  66.                     <configuration>
  67.                         <configLocation>com/github/ngeor/checkstyle.xml</configLocation>
  68.                         <includeTestSourceDirectory>true</includeTestSourceDirectory>
  69.                     </configuration>
  70.                 </plugin>
  71.             </plugins>
  72.         </pluginManagement>
  73.         <plugins>
  74.             <plugin>
  75.                 <groupId>org.apache.maven.plugins</groupId>
  76.                 <artifactId>maven-checkstyle-plugin</artifactId>
  77.             </plugin>
  78.  
  79.             <!--
  80.                You can run jacoco in the default profile with:
  81.                mvn jacoco:prepare-agent test jacoco:report
  82.            -->
  83.             <plugin>
  84.                 <groupId>org.jacoco</groupId>
  85.                 <artifactId>jacoco-maven-plugin</artifactId>
  86.                 <version>0.8.1</version>
  87.             </plugin>
  88.         </plugins>
  89.     </build>
  90.     <reporting>
  91.         <plugins>
  92.             <plugin>
  93.                 <groupId>org.apache.maven.plugins</groupId>
  94.                 <artifactId>maven-javadoc-plugin</artifactId>
  95.                 <version>3.0.0</version>
  96.             </plugin>
  97.             <plugin>
  98.                 <groupId>org.apache.maven.plugins</groupId>
  99.                 <artifactId>maven-checkstyle-plugin</artifactId>
  100.                 <configuration>
  101.                     <configLocation>com/github/ngeor/checkstyle.xml</configLocation>
  102.                     <includeTestSourceDirectory>true</includeTestSourceDirectory>
  103.                 </configuration>
  104.             </plugin>
  105.         </plugins>
  106.     </reporting>
  107.  
  108.     <profiles>
  109.         <!--
  110.        This profile enables jacoco when unit tests are run.
  111.        You can run it with mvn -P jacoco test.
  112.        It also activates itself on Travis.
  113.        -->
  114.         <profile>
  115.             <id>jacoco</id>
  116.             <activation>
  117.                 <property>
  118.                     <name>env.TRAVIS</name>
  119.                 </property>
  120.             </activation>
  121.             <build>
  122.                 <plugins>
  123.                     <plugin>
  124.                         <groupId>org.jacoco</groupId>
  125.                         <artifactId>jacoco-maven-plugin</artifactId>
  126.                         <executions>
  127.                             <execution>
  128.                                 <id>prepare-agent</id>
  129.                                 <phase>validate</phase>
  130.                                 <goals>
  131.                                     <goal>prepare-agent</goal>
  132.                                 </goals>
  133.                             </execution>
  134.                             <execution>
  135.                                 <id>report</id>
  136.                                 <phase>test</phase>
  137.                                 <goals>
  138.                                     <goal>report</goal>
  139.                                 </goals>
  140.                             </execution>
  141.                         </executions>
  142.                     </plugin>
  143.                 </plugins>
  144.             </build>
  145.         </profile>
  146.  
  147.         <!--
  148.        For the Travis profile:
  149.        - we want to break the build on any checkstyle violation.
  150.        - we want to be able to publish coverage report to coveralls.
  151.        -->
  152.         <profile>
  153.             <id>travis</id>
  154.             <activation>
  155.                 <property>
  156.                     <name>env.TRAVIS</name>
  157.                 </property>
  158.             </activation>
  159.             <build>
  160.                 <plugins>
  161.                     <plugin>
  162.                         <groupId>org.apache.maven.plugins</groupId>
  163.                         <artifactId>maven-checkstyle-plugin</artifactId>
  164.                         <executions>
  165.                             <execution>
  166.                                 <id>checkstyle</id>
  167.                                 <phase>test</phase>
  168.                                 <goals>
  169.                                     <goal>check</goal>
  170.                                 </goals>
  171.                             </execution>
  172.                         </executions>
  173.                     </plugin>
  174.                     <plugin>
  175.                         <groupId>org.eluder.coveralls</groupId>
  176.                         <artifactId>coveralls-maven-plugin</artifactId>
  177.                         <version>4.3.0</version>
  178.                     </plugin>
  179.                 </plugins>
  180.             </build>
  181.         </profile>
  182.     </profiles>
  183. </project>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement