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.1-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>
71 Prepares the property pointing to the JaCoCo runtime agent which
72 is passed as VM argument when the Surefire plugin is executed.
75 <id>pre-unit-test</id>
77 <goal>prepare-agent</goal>
80 <!-- Sets the path to the file which contains the execution data. -->
81 <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
83 Sets the name of the property containing the settings
84 for JaCoCo runtime agent.
86 <propertyName>surefireArgLine</propertyName>
90 Ensures that the code coverage report for unit tests is created after
91 unit tests have been run.
94 <id>post-unit-test</id>
100 <!-- Sets the path to the file which contains the execution data. -->
101 <dataFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</dataFile>
102 <!-- Sets the output directory for the code coverage report. -->
103 <outputDirectory>${project.reporting.outputDirectory}/jacoco-ut</outputDirectory>
112 <groupId>commons-cli</groupId>
113 <artifactId>commons-cli</artifactId>
114 <version>1.3.1</version>
117 <groupId>org.apache.commons</groupId>
118 <artifactId>commons-collections4</artifactId>
119 <version>4.1</version>
122 <groupId>jline</groupId>
123 <artifactId>jline</artifactId>
124 <version>2.14.1</version>
125 <scope>compile</scope>
128 <groupId>junit</groupId>
129 <artifactId>junit</artifactId>
130 <version>4.0</version>