Switch (back) to using the head-of-stream JaCoCo.
[squelch.git] / pom.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <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">
3   <modelVersion>4.0.0</modelVersion>
4   <groupId>net.jaekl.squelch</groupId>
5   <artifactId>squelch</artifactId>
6   <packaging>jar</packaging>
7   <version>0.1b-SNAPSHOT</version>
8   <name>squelch</name>
9   <url>http://maven.apache.org</url>
10   <build>
11     <plugins>
12       <plugin>
13         <groupId>org.apache.maven.plugins</groupId>
14         <artifactId>maven-jar-plugin</artifactId>
15         <version>2.2</version>
16         <!-- nothing here -->
17       </plugin>
18       <plugin>
19         <groupId>org.apache.maven.plugins</groupId>
20         <artifactId>maven-assembly-plugin</artifactId>
21         <version>2.2-beta-4</version>
22         <configuration>
23           <descriptorRefs>
24             <descriptorRef>jar-with-dependencies</descriptorRef>
25           </descriptorRefs>
26           <archive>
27             <manifest>
28               <mainClass>net.jaekl.squelch.Squelch</mainClass>
29             </manifest>
30           </archive>
31         </configuration>
32         <executions>
33           <execution>
34             <phase>package</phase>
35             <goals>
36               <goal>single</goal>
37             </goals>
38           </execution>
39         </executions>
40       </plugin>
41       <plugin>
42         <groupId>org.apache.maven.plugins</groupId>
43         <artifactId>maven-compiler-plugin</artifactId>
44         <version>3.0</version>
45         <configuration>
46           <source>1.7</source>
47           <target>1.7</target>
48         </configuration>
49       </plugin>
50       <plugin>
51         <groupId>org.apache.maven.plugins</groupId>
52         <artifactId>maven-surefire-plugin</artifactId>
53         <version>2.15</version>
54         <configuration>
55           <!-- Sets the VM argument line used when unit tests are run. -->
56           <argLine>${surefireArgLine}</argLine>
57           <!-- Skips unit tests if the value of skip.unit.tests property is true -->
58           <skipTests>${skip.unit.tests}</skipTests>
59           <!-- Excludes integration tests when unit tests are run. -->
60           <excludes>
61             <exclude>**/IT*.java</exclude>
62           </excludes>
63         </configuration>
64       </plugin>
65       <plugin>
66         <groupId>org.jacoco</groupId>
67         <artifactId>jacoco-maven-plugin</artifactId>
68         <!-- <version>0.6.5.201403032054</version> -->
69         <!-- <version>0.7.4.201502262128</version> -->
70         <executions>
71           <!--
72             Prepares the property pointing to the JaCoCo runtime agent which
73             is passed as VM argument when the Surefire plugin is executed.
74         -->
75           <execution>
76             <id>pre-unit-test</id>
77             <goals>
78               <goal>prepare-agent</goal>
79             </goals>
80             <configuration>
81               <!-- Sets the path to the file which contains the execution data. -->
82               <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
83               <!--
84                     Sets the name of the property containing the settings
85                     for JaCoCo runtime agent.
86                 -->
87               <propertyName>surefireArgLine</propertyName>
88             </configuration>
89           </execution>
90           <!--
91             Ensures that the code coverage report for unit tests is created after
92             unit tests have been run.
93         -->
94           <execution>
95             <id>post-unit-test</id>
96             <phase>test</phase>
97             <goals>
98               <goal>report</goal>
99             </goals>
100             <configuration>
101               <!-- Sets the path to the file which contains the execution data. -->
102               <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
103               <!-- Sets the output directory for the code coverage report. -->
104               <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
105             </configuration>
106           </execution>
107         </executions>
108       </plugin>
109     </plugins>
110   </build>
111   <dependencies>
112     <dependency>
113       <groupId>commons-cli</groupId>
114       <artifactId>commons-cli</artifactId>
115       <version>1.3.1</version>
116     </dependency>
117     <dependency>
118       <groupId>org.apache.commons</groupId>
119       <artifactId>commons-collections4</artifactId>
120       <version>4.1</version>
121     </dependency>
122     <dependency>
123       <groupId>jline</groupId>
124       <artifactId>jline</artifactId>
125       <version>2.14.1</version>
126       <scope>compile</scope>
127     </dependency>
128     <dependency>
129       <groupId>junit</groupId>
130       <artifactId>junit</artifactId>
131       <version>4.0</version>
132       <scope>test</scope>
133     </dependency>
134     <!-- http://mvnrepository.com/artifact/org.postgresql/postgresql -->
135     <dependency>
136       <groupId>org.postgresql</groupId>
137       <artifactId>postgresql</artifactId>
138       <version>9.4.1208.jre7</version>
139     </dependency>
140   </dependencies>
141 </project>