|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" |
| 3 | + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 4 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
| 5 | + <modelVersion>4.0.0</modelVersion> |
| 6 | + |
| 7 | + <groupId>edu.luc.cs</groupId> |
| 8 | + <artifactId>consoleapp</artifactId> |
| 9 | + <version>0.2</version> |
| 10 | + <packaging>jar</packaging> |
| 11 | + |
| 12 | + <name>consoleapp</name> |
| 13 | + |
| 14 | + <properties> |
| 15 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
| 16 | + <maven.compiler.release>21</maven.compiler.release> |
| 17 | + <junit.version>5.10.0</junit.version> |
| 18 | + <jacoco.version>0.8.11</jacoco.version> |
| 19 | + </properties> |
| 20 | + |
| 21 | + <dependencies> |
| 22 | + <!-- Apache Commons Collections --> |
| 23 | + <dependency> |
| 24 | + <groupId>org.apache.commons</groupId> |
| 25 | + <artifactId>commons-collections4</artifactId> |
| 26 | + <version>4.5.0</version> |
| 27 | + </dependency> |
| 28 | + |
| 29 | + <!-- JUnit Jupiter for testing --> |
| 30 | + <dependency> |
| 31 | + <groupId>org.junit.jupiter</groupId> |
| 32 | + <artifactId>junit-jupiter</artifactId> |
| 33 | + <version>${junit.version}</version> |
| 34 | + <scope>test</scope> |
| 35 | + </dependency> |
| 36 | + </dependencies> |
| 37 | + |
| 38 | + <build> |
| 39 | + <plugins> |
| 40 | + <!-- Maven Compiler Plugin --> |
| 41 | + <plugin> |
| 42 | + <groupId>org.apache.maven.plugins</groupId> |
| 43 | + <artifactId>maven-compiler-plugin</artifactId> |
| 44 | + <version>3.11.0</version> |
| 45 | + <configuration> |
| 46 | + <release>${maven.compiler.release}</release> |
| 47 | + <compilerArgs> |
| 48 | + <arg>-Xlint:all</arg> |
| 49 | + </compilerArgs> |
| 50 | + <showWarnings>true</showWarnings> |
| 51 | + <showDeprecation>true</showDeprecation> |
| 52 | + </configuration> |
| 53 | + </plugin> |
| 54 | + |
| 55 | + <!-- Maven Surefire Plugin for running tests --> |
| 56 | + <plugin> |
| 57 | + <groupId>org.apache.maven.plugins</groupId> |
| 58 | + <artifactId>maven-surefire-plugin</artifactId> |
| 59 | + <version>3.2.2</version> |
| 60 | + <configuration> |
| 61 | + <argLine>-enableassertions ${argLine}</argLine> |
| 62 | + </configuration> |
| 63 | + </plugin> |
| 64 | + |
| 65 | + <!-- JaCoCo Plugin for code coverage --> |
| 66 | + <plugin> |
| 67 | + <groupId>org.jacoco</groupId> |
| 68 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 69 | + <version>${jacoco.version}</version> |
| 70 | + <configuration> |
| 71 | + <excludes> |
| 72 | + <exclude>**/Main*.class</exclude> |
| 73 | + </excludes> |
| 74 | + </configuration> |
| 75 | + <executions> |
| 76 | + <execution> |
| 77 | + <id>prepare-agent</id> |
| 78 | + <goals> |
| 79 | + <goal>prepare-agent</goal> |
| 80 | + </goals> |
| 81 | + </execution> |
| 82 | + <execution> |
| 83 | + <id>report</id> |
| 84 | + <phase>test</phase> |
| 85 | + <goals> |
| 86 | + <goal>report</goal> |
| 87 | + </goals> |
| 88 | + </execution> |
| 89 | + <execution> |
| 90 | + <id>check</id> |
| 91 | + <phase>test</phase> |
| 92 | + <goals> |
| 93 | + <goal>check</goal> |
| 94 | + </goals> |
| 95 | + <configuration> |
| 96 | + <rules> |
| 97 | + <rule> |
| 98 | + <element>BUNDLE</element> |
| 99 | + <limits> |
| 100 | + <limit> |
| 101 | + <counter>INSTRUCTION</counter> |
| 102 | + <value>COVEREDRATIO</value> |
| 103 | + <minimum>0.80</minimum> |
| 104 | + </limit> |
| 105 | + <limit> |
| 106 | + <counter>METHOD</counter> |
| 107 | + <value>COVEREDRATIO</value> |
| 108 | + <minimum>1.00</minimum> |
| 109 | + </limit> |
| 110 | + <limit> |
| 111 | + <counter>LINE</counter> |
| 112 | + <value>COVEREDRATIO</value> |
| 113 | + <minimum>0.90</minimum> |
| 114 | + </limit> |
| 115 | + <limit> |
| 116 | + <counter>CLASS</counter> |
| 117 | + <value>COVEREDRATIO</value> |
| 118 | + <minimum>1.00</minimum> |
| 119 | + </limit> |
| 120 | + <limit> |
| 121 | + <counter>COMPLEXITY</counter> |
| 122 | + <value>COVEREDRATIO</value> |
| 123 | + <minimum>1.00</minimum> |
| 124 | + </limit> |
| 125 | + </limits> |
| 126 | + </rule> |
| 127 | + </rules> |
| 128 | + </configuration> |
| 129 | + </execution> |
| 130 | + </executions> |
| 131 | + </plugin> |
| 132 | + |
| 133 | + <!-- Maven Assembly Plugin for creating executable JAR --> |
| 134 | + <plugin> |
| 135 | + <groupId>org.apache.maven.plugins</groupId> |
| 136 | + <artifactId>maven-assembly-plugin</artifactId> |
| 137 | + <version>3.6.0</version> |
| 138 | + <configuration> |
| 139 | + <archive> |
| 140 | + <manifest> |
| 141 | + <mainClass>edu.luc.cs.consoleapp.Main</mainClass> |
| 142 | + </manifest> |
| 143 | + </archive> |
| 144 | + <descriptorRefs> |
| 145 | + <descriptorRef>jar-with-dependencies</descriptorRef> |
| 146 | + </descriptorRefs> |
| 147 | + </configuration> |
| 148 | + <executions> |
| 149 | + <execution> |
| 150 | + <id>make-assembly</id> |
| 151 | + <phase>package</phase> |
| 152 | + <goals> |
| 153 | + <goal>single</goal> |
| 154 | + </goals> |
| 155 | + </execution> |
| 156 | + </executions> |
| 157 | + </plugin> |
| 158 | + |
| 159 | + <!-- Maven JAR Plugin --> |
| 160 | + <plugin> |
| 161 | + <groupId>org.apache.maven.plugins</groupId> |
| 162 | + <artifactId>maven-jar-plugin</artifactId> |
| 163 | + <version>3.3.0</version> |
| 164 | + <configuration> |
| 165 | + <archive> |
| 166 | + <manifest> |
| 167 | + <mainClass>edu.luc.cs.consoleapp.Main</mainClass> |
| 168 | + </manifest> |
| 169 | + </archive> |
| 170 | + </configuration> |
| 171 | + </plugin> |
| 172 | + |
| 173 | + <!-- Formatter Maven Plugin for code formatting --> |
| 174 | + <!-- Disabled by default. To enable, create a .formatter.xml config file --> |
| 175 | + <!-- and uncomment the executions section below --> |
| 176 | + <plugin> |
| 177 | + <groupId>net.revelc.code.formatter</groupId> |
| 178 | + <artifactId>formatter-maven-plugin</artifactId> |
| 179 | + <version>2.23.0</version> |
| 180 | + <configuration> |
| 181 | + <configFile>${project.basedir}/.formatter.xml</configFile> |
| 182 | + <lineEnding>LF</lineEnding> |
| 183 | + </configuration> |
| 184 | + <!-- Uncomment to enable automatic formatting on compile |
| 185 | + <executions> |
| 186 | + <execution> |
| 187 | + <goals> |
| 188 | + <goal>format</goal> |
| 189 | + </goals> |
| 190 | + </execution> |
| 191 | + </executions> |
| 192 | + --> |
| 193 | + </plugin> |
| 194 | + </plugins> |
| 195 | + </build> |
| 196 | + |
| 197 | + <reporting> |
| 198 | + <plugins> |
| 199 | + <!-- JaCoCo Report Plugin --> |
| 200 | + <plugin> |
| 201 | + <groupId>org.jacoco</groupId> |
| 202 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 203 | + <version>${jacoco.version}</version> |
| 204 | + <reportSets> |
| 205 | + <reportSet> |
| 206 | + <reports> |
| 207 | + <report>report</report> |
| 208 | + </reports> |
| 209 | + </reportSet> |
| 210 | + </reportSets> |
| 211 | + </plugin> |
| 212 | + </plugins> |
| 213 | + </reporting> |
| 214 | +</project> |
0 commit comments