Opens and closes the JDBC connection for each command
[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.1a-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         <executions>
70           <!--
71             Prepares the property pointing to the JaCoCo runtime agent which
72             is passed as VM argument when the Surefire plugin is executed.
73         -->
74           <execution>
75             <id>pre-unit-test</id>
76             <goals>
77               <goal>prepare-agent</goal>
78             </goals>
79             <configuration>
80               <!-- Sets the path to the file which contains the execution data. -->
81               <destFile>${project.build.directory}/coverage-reports/jacoco-ut.exec</destFile>
82               <!--
83                     Sets the name of the property containing the settings
84                     for JaCoCo runtime agent.
85                 -->
86               <propertyName>surefireArgLine</propertyName>
87             </configuration>
88           </execution>
89           <!--
90             Ensures that the code coverage report for unit tests is created after
91             unit tests have been run.
92         -->
93           <execution>
94             <id>post-unit-test</id>
95             <phase>test</phase>
96             <goals>
97               <goal>report</goal>
98             </goals>
99             <configuration>
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>
104             </configuration>
105           </execution>
106         </executions>
107       </plugin>
108     </plugins>
109   </build>
110   <dependencies>
111     <dependency>
112       <groupId>commons-cli</groupId>
113       <artifactId>commons-cli</artifactId>
114       <version>1.3.1</version>
115     </dependency>
116     <dependency>
117       <groupId>org.apache.commons</groupId>
118       <artifactId>commons-collections4</artifactId>
119       <version>4.1</version>
120     </dependency>
121     <dependency>
122       <groupId>jline</groupId>
123       <artifactId>jline</artifactId>
124       <version>2.14.1</version>
125       <scope>compile</scope>
126     </dependency>
127     <dependency>
128       <groupId>junit</groupId>
129       <artifactId>junit</artifactId>
130       <version>4.0</version>
131       <scope>test</scope>
132     </dependency>
133     <!-- http://mvnrepository.com/artifact/org.postgresql/postgresql -->
134     <dependency>
135       <groupId>org.postgresql</groupId>
136       <artifactId>postgresql</artifactId>
137       <version>9.4.1208.jre7</version>
138     </dependency>
139   </dependencies>
140 </project>