|
251 | 251 |
|
252 | 252 | <plugins> <!-- plugins inherited by all child POMs --> |
253 | 253 |
|
| 254 | + <!-- static analysis --> |
254 | 255 | <plugin> |
255 | 256 | <groupId>com.github.spotbugs</groupId> |
256 | 257 | <artifactId>spotbugs-maven-plugin</artifactId> |
|
260 | 261 | </configuration> |
261 | 262 | </plugin> |
262 | 263 |
|
| 264 | + <!-- documentation generation --> |
263 | 265 | <plugin> |
264 | 266 | <groupId>org.apache.maven.plugins</groupId> |
265 | 267 | <artifactId>maven-javadoc-plugin</artifactId> |
|
280 | 282 | </executions> |
281 | 283 | </plugin> |
282 | 284 |
|
| 285 | + <!-- general settings --> |
283 | 286 | <plugin> |
284 | 287 | <groupId>org.apache.maven.plugins</groupId> |
285 | 288 | <artifactId>maven-compiler-plugin</artifactId> |
|
289 | 292 | <encoding>UTF-8</encoding> |
290 | 293 | </configuration> |
291 | 294 | </plugin> |
292 | | - |
293 | 295 | <plugin> |
294 | 296 | <groupId>org.apache.maven.plugins</groupId> |
295 | 297 | <artifactId>maven-resources-plugin</artifactId> |
|
299 | 301 | </configuration> |
300 | 302 | </plugin> |
301 | 303 |
|
| 304 | + <!-- JAR --> |
302 | 305 | <plugin> |
303 | 306 | <groupId>org.apache.maven.plugins</groupId> |
304 | 307 | <artifactId>maven-jar-plugin</artifactId> |
|
323 | 326 | </configuration> |
324 | 327 | </plugin> |
325 | 328 |
|
| 329 | + <!-- dependency analysis --> |
| 330 | + <plugin> |
| 331 | + <groupId>org.apache.maven.plugins</groupId> |
| 332 | + <artifactId>maven-dependency-plugin</artifactId> |
| 333 | + <version>3.10.0</version> |
| 334 | + <executions> |
| 335 | + <execution> |
| 336 | + <id>analyze</id> |
| 337 | + <phase>verify</phase> |
| 338 | + <goals> |
| 339 | + <goal>tree</goal> |
| 340 | + <goal>analyze-only</goal> |
| 341 | + </goals> |
| 342 | + <configuration> |
| 343 | + <failOnWarning>true</failOnWarning> |
| 344 | + <!-- ignore certain "unused but declared" warnings --> |
| 345 | + <ignoredUnusedDeclaredDependencies> |
| 346 | + <ignoredUnusedDeclaredDependency>ai.djl:model-zoo</ignoredUnusedDeclaredDependency> |
| 347 | + <ignoredUnusedDeclaredDependency>ai.djl.pytorch:pytorch-model-zoo</ignoredUnusedDeclaredDependency> |
| 348 | + <ignoredUnusedDeclaredDependency>ai.djl.pytorch:pytorch-engine</ignoredUnusedDeclaredDependency> |
| 349 | + <ignoredUnusedDeclaredDependency>ai.djl.pytorch:pytorch-native-cpu</ignoredUnusedDeclaredDependency> |
| 350 | + <ignoredUnusedDeclaredDependency>ai.djl.pytorch:pytorch-jni</ignoredUnusedDeclaredDependency> |
| 351 | + </ignoredUnusedDeclaredDependencies> |
| 352 | + </configuration> |
| 353 | + </execution> |
| 354 | + </executions> |
| 355 | + </plugin> |
| 356 | + |
| 357 | + <!-- dependency convergence --> |
326 | 358 | <plugin> |
327 | 359 | <groupId>org.apache.maven.plugins</groupId> |
328 | 360 | <artifactId>maven-enforcer-plugin</artifactId> |
|
347 | 379 | </executions> |
348 | 380 | </plugin> |
349 | 381 |
|
| 382 | + <!-- coverage --> |
350 | 383 | <plugin> |
351 | 384 | <groupId>org.jacoco</groupId> |
352 | 385 | <artifactId>jacoco-maven-plugin</artifactId> |
|
0 commit comments