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.1a-SNAPSHOT</version>
9 <url>http://maven.apache.org</url>
13 <groupId>org.apache.maven.plugins</groupId>
14 <artifactId>maven-jar-plugin</artifactId>
15 <version>2.2</version>
19 <groupId>org.apache.maven.plugins</groupId>
20 <artifactId>maven-assembly-plugin</artifactId>
21 <version>2.2-beta-4</version>
24 <descriptorRef>jar-with-dependencies</descriptorRef>
28 <mainClass>net.jaekl.squelch.Squelch</mainClass>
34 <phase>package</phase>
42 <groupId>org.apache.maven.plugins</groupId>
43 <artifactId>maven-compiler-plugin</artifactId>
44 <version>3.0</version>
51 <groupId>org.apache.maven.plugins</groupId>
52 <artifactId>maven-surefire-plugin</artifactId>
53 <version>2.15</version>
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. -->
61 <exclude>**/IT*.java</exclude>
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>
72 Prepares the property pointing to the JaCoCo runtime agent which
73 is passed as VM argument when the Surefire plugin is executed.
76 <id>pre-unit-test</id>
78 <goal>prepare-agent</goal>
81 <!-- Sets the path to the file which contains the execution data. -->
82 <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
84 Sets the name of the property containing the settings
85 for JaCoCo runtime agent.
87 <propertyName>surefireArgLine</propertyName>
91 Ensures that the code coverage report for unit tests is created after
92 unit tests have been run.
95 <id>post-unit-test</id>
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>
113 <groupId>commons-cli</groupId>
114 <artifactId>commons-cli</artifactId>
115 <version>1.3.1</version>
118 <groupId>org.apache.commons</groupId>
119 <artifactId>commons-collections4</artifactId>
120 <version>4.1</version>
123 <groupId>jline</groupId>
124 <artifactId>jline</artifactId>
125 <version>2.14.1</version>
126 <scope>compile</scope>
129 <groupId>junit</groupId>
130 <artifactId>junit</artifactId>
131 <version>4.0</version>
134 <!-- http://mvnrepository.com/artifact/org.postgresql/postgresql -->
136 <groupId>org.postgresql</groupId>
137 <artifactId>postgresql</artifactId>
138 <version>9.4.1208.jre7</version>