|
84 | 84 | <groupId>org.postgresql</groupId> |
85 | 85 | <artifactId>postgresql</artifactId> |
86 | 86 | <version>42.6.0</version> |
| 87 | + <scope>runtime</scope> |
87 | 88 | </dependency> |
88 | 89 | </dependencies> |
89 | 90 | </profile> |
|
103 | 104 | <groupId>mysql</groupId> |
104 | 105 | <artifactId>mysql-connector-java</artifactId> |
105 | 106 | <version>8.0.30</version> |
| 107 | + <scope>runtime</scope> |
106 | 108 | </dependency> |
107 | 109 | </dependencies> |
108 | 110 | </profile> |
|
144 | 146 | <groupId>org.mariadb.jdbc</groupId> |
145 | 147 | <artifactId>mariadb-java-client</artifactId> |
146 | 148 | <version>3.1.4</version> |
| 149 | + <scope>runtime</scope> |
147 | 150 | </dependency> |
148 | 151 | </dependencies> |
149 | 152 | </profile> |
|
163 | 166 | <groupId>com.google.cloud</groupId> |
164 | 167 | <artifactId>google-cloud-spanner-jdbc</artifactId> |
165 | 168 | <version>2.10.0</version> |
| 169 | + <scope>runtime</scope> |
166 | 170 | </dependency> |
167 | 171 | </dependencies> |
168 | 172 | </profile> |
|
182 | 186 | <groupId>org.postgresql</groupId> |
183 | 187 | <artifactId>postgresql</artifactId> |
184 | 188 | <version>42.6.0</version> |
| 189 | + <scope>runtime</scope> |
185 | 190 | </dependency> |
186 | 191 | </dependencies> |
187 | 192 | </profile> |
|
201 | 206 | <groupId>org.apache.phoenix</groupId> |
202 | 207 | <artifactId>phoenix-client-hbase-2.4</artifactId> |
203 | 208 | <version>5.1.3</version> |
| 209 | + <scope>runtime</scope> |
204 | 210 | </dependency> |
205 | 211 | </dependencies> |
206 | 212 | </profile> |
|
220 | 226 | <groupId>com.microsoft.sqlserver</groupId> |
221 | 227 | <artifactId>mssql-jdbc</artifactId> |
222 | 228 | <version>11.2.3.jre17</version> |
| 229 | + <scope>runtime</scope> |
223 | 230 | </dependency> |
224 | 231 | </dependencies> |
225 | 232 | </profile> |
|
233 | 240 | </dependency> |
234 | 241 |
|
235 | 242 | <dependency> |
| 243 | + <!-- Drop-in replacement of log4j --> |
236 | 244 | <groupId>org.slf4j</groupId> |
237 | 245 | <artifactId>slf4j-reload4j</artifactId> |
238 | 246 | <version>2.0.9</version> |
|
245 | 253 | </dependency> |
246 | 254 |
|
247 | 255 | <dependency> |
| 256 | + <!-- For templated benchmark --> |
248 | 257 | <groupId>commons-jxpath</groupId> |
249 | 258 | <artifactId>commons-jxpath</artifactId> |
250 | 259 | <version>1.3</version> |
|
268 | 277 | <version>2.15.1</version> |
269 | 278 | </dependency> |
270 | 279 |
|
| 280 | + <dependency> |
| 281 | + <groupId>org.apache.commons</groupId> |
| 282 | + <artifactId>commons-text</artifactId> |
| 283 | + <version>1.10.0</version> |
| 284 | + <scope>compile</scope> |
| 285 | + </dependency> |
| 286 | + |
271 | 287 | <dependency> |
272 | 288 | <groupId>org.apache.commons</groupId> |
273 | 289 | <artifactId>commons-collections4</artifactId> |
|
293 | 309 | </dependency> |
294 | 310 |
|
295 | 311 | <dependency> |
| 312 | + <!-- Used for (currently manual) code generation from xml schema files. --> |
296 | 313 | <groupId>org.glassfish.jaxb</groupId> |
297 | 314 | <artifactId>jaxb-runtime</artifactId> |
298 | 315 | <version>4.0.4</version> |
| 316 | + <scope>compile</scope> |
299 | 317 | </dependency> |
300 | 318 |
|
301 | 319 | <dependency> |
302 | 320 | <groupId>org.hsqldb</groupId> |
303 | 321 | <artifactId>hsqldb</artifactId> |
304 | 322 | <version>2.7.2</version> |
| 323 | + <scope>test</scope> |
305 | 324 | </dependency> |
306 | 325 |
|
307 | 326 | <dependency> |
|
319 | 338 | </dependency> |
320 | 339 |
|
321 | 340 | <dependency> |
| 341 | + <groupId>org.codehaus.janino</groupId> |
| 342 | + <artifactId>commons-compiler</artifactId> |
| 343 | + <version>3.1.11</version> |
| 344 | + </dependency> |
| 345 | + |
| 346 | + <dependency> |
| 347 | + <!-- Used by the templated benchmark for internal compiling proceedures. --> |
322 | 348 | <groupId>org.codehaus.janino</groupId> |
323 | 349 | <artifactId>janino</artifactId> |
324 | 350 | <version>3.1.11</version> |
|
365 | 391 | </compilerArgs> |
366 | 392 | </configuration> |
367 | 393 | </plugin> |
| 394 | + <!-- TODO: Use PMD to check for various code health things.plugin> |
| 395 | + Invoked with `mvn pmd:check` or `mvn verify` |
| 396 | + <plugin> |
| 397 | + <groupId>org.apache.maven.plugins</groupId> |
| 398 | + <artifactId>maven-pmd-plugin</artifactId> |
| 399 | + <version>3.21.2</version> |
| 400 | + <configuration> |
| 401 | + <excludeRoots> |
| 402 | + <excludeRoot>target/generated-sources</excludeRoot> |
| 403 | + <excludeRoot>target/generated-test-sources</excludeRoot> |
| 404 | + </excludeRoots> |
| 405 | + <linkXRef>true</linkXRef> |
| 406 | + </configuration> |
| 407 | + </plugin> |
| 408 | + --> |
368 | 409 | <plugin> |
369 | 410 | <groupId>org.apache.maven.plugins</groupId> |
370 | 411 | <artifactId>maven-jar-plugin</artifactId> |
|
461 | 502 | <goal>analyze-only</goal> |
462 | 503 | </goals> |
463 | 504 | <configuration> |
464 | | - <failOnWarning>false</failOnWarning> |
| 505 | + <failOnWarning>true</failOnWarning> |
| 506 | + |
| 507 | + <ignoredUnusedDeclaredDependencies> |
| 508 | + <!-- Used for (currently manual) code generation from xml schema files. --> |
| 509 | + <ignoredUnusedDeclaredDependency>org.glassfish.jaxb:jaxb-runtime:jar</ignoredUnusedDeclaredDependency> |
| 510 | + <!-- Drop-in replacement of log4j --> |
| 511 | + <ignoredUnusedDeclaredDependency>org.slf4j:slf4j-reload4j:jar</ignoredUnusedDeclaredDependency> |
| 512 | + <!-- Used by the templated benchmark for internal compiling proceedures. --> |
| 513 | + <ignoredUnusedDeclaredDependency>org.codehaus.janino:janino:jar</ignoredUnusedDeclaredDependency> |
| 514 | + <!-- Used by the templated benchmark. --> |
| 515 | + <ignoredUnusedDeclaredDependency>commons-jxpath:commons-jxpath:jar</ignoredUnusedDeclaredDependency> |
| 516 | + |
| 517 | + <!-- |
| 518 | + Need to ignore the following profile specific dependencies since they're runtime only. |
| 519 | + --> |
| 520 | + <ignoredUnusedDeclaredDependency>org.postgresql:postgresql:jar</ignoredUnusedDeclaredDependency> |
| 521 | + <ignoredUnusedDeclaredDependency>mysql:mysql-connector-java:jar</ignoredUnusedDeclaredDependency> |
| 522 | + <ignoredUnusedDeclaredDependency>com.oracle.database.jdbc:ojdbc11:jar</ignoredUnusedDeclaredDependency> |
| 523 | + <ignoredUnusedDeclaredDependency>org.mariadb.jdbc:mariadb-java-client:jar</ignoredUnusedDeclaredDependency> |
| 524 | + <ignoredUnusedDeclaredDependency>com.google.cloud:google-cloud-spanner-jdbc:jar</ignoredUnusedDeclaredDependency> |
| 525 | + <ignoredUnusedDeclaredDependency>org.apache.phoenix:phoenix-client-hbase-2.4:jar</ignoredUnusedDeclaredDependency> |
| 526 | + <ignoredUnusedDeclaredDependency>com.microsoft.sqlserver:mssql-jdbc:jar</ignoredUnusedDeclaredDependency> |
| 527 | + <ignoredUnusedDeclaredDependency>org.xerial:sqlite-jdbc:jar</ignoredUnusedDeclaredDependency> |
| 528 | + </ignoredUnusedDeclaredDependencies> |
465 | 529 | </configuration> |
466 | 530 | </execution> |
467 | 531 | </executions> |
|
476 | 540 | </plugin> |
477 | 541 | </plugins> |
478 | 542 | </build> |
479 | | - |
480 | 543 | </project> |
0 commit comments