|
92 | 92 | <maven-release-plugin.version>2.5.3</maven-release-plugin.version> |
93 | 93 | <nexus-staging-maven-plugin.version>1.6.8</nexus-staging-maven-plugin.version> |
94 | 94 | <maven-source-plugin.version>3.2.1</maven-source-plugin.version> |
95 | | - <maven-javadoc-plugin.version>3.3.0</maven-javadoc-plugin.version> |
| 95 | + <maven-site-plugin.version>3.9.1</maven-site-plugin.version> |
| 96 | + <maven-javadoc-plugin.version>3.3.1</maven-javadoc-plugin.version> |
96 | 97 | <maven-dependency-plugin.version>3.1.2</maven-dependency-plugin.version> |
97 | 98 | <maven-gpg-plugin.version>1.6</maven-gpg-plugin.version> |
98 | 99 | <!-- TODO(AY): change version when the new release comes. Java 11 Warning https://github.com/highsource/maven-jaxb2-plugin/issues/148 --> |
|
103 | 104 | <maven-jar-plugin.version>3.2.0</maven-jar-plugin.version> |
104 | 105 | <maven-shade-plugin.version>3.2.4</maven-shade-plugin.version> |
105 | 106 | <maven-bundle-plugin.version>5.1.1</maven-bundle-plugin.version> |
| 107 | + <!-- Code Analysis --> |
| 108 | + <labs64.code-analysis.version>2.0.1</labs64.code-analysis.version> |
| 109 | + <labs64.code-analysis.phase>site</labs64.code-analysis.phase> |
| 110 | + <labs64.code-analysis.failOnViolation>false</labs64.code-analysis.failOnViolation> |
| 111 | + <maven-checkstyle-plugin.version>3.1.2</maven-checkstyle-plugin.version> |
| 112 | + <spotbugs-maven-plugin.version>4.5.3.0</spotbugs-maven-plugin.version> |
| 113 | + <maven-pmd-plugin.version>3.15.0</maven-pmd-plugin.version> |
106 | 114 | </properties> |
107 | 115 |
|
108 | 116 | <build> |
|
131 | 139 | </execution> |
132 | 140 | </executions> |
133 | 141 | </plugin> |
| 142 | + <plugin> |
| 143 | + <groupId>org.apache.maven.plugins</groupId> |
| 144 | + <artifactId>maven-site-plugin</artifactId> |
| 145 | + <version>${maven-site-plugin.version}</version> |
| 146 | + <configuration> |
| 147 | + <locales>en</locales> |
| 148 | + <outputEncoding>UTF-8</outputEncoding> |
| 149 | + </configuration> |
| 150 | + </plugin> |
134 | 151 | <plugin> |
135 | 152 | <groupId>org.apache.maven.plugins</groupId> |
136 | 153 | <artifactId>maven-javadoc-plugin</artifactId> |
|
270 | 287 | <artifactId>maven-bundle-plugin</artifactId> |
271 | 288 | <version>${maven-bundle-plugin.version}</version> |
272 | 289 | </plugin> |
| 290 | + |
| 291 | + <!-- https://maven.apache.org/plugins/maven-checkstyle-plugin/usage.html --> |
| 292 | + <plugin> |
| 293 | + <groupId>org.apache.maven.plugins</groupId> |
| 294 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 295 | + <version>${maven-checkstyle-plugin.version}</version> |
| 296 | + <configuration> |
| 297 | + <configLocation>labs64-code-analysis/checkstyle.xml</configLocation> |
| 298 | + <failsOnError>${labs64.code-analysis.failOnViolation}</failsOnError> |
| 299 | + <propertyExpansion>basedir=${project.basedir}</propertyExpansion> |
| 300 | + <excludes>**/generated-sources/**/*</excludes> |
| 301 | + </configuration> |
| 302 | + <executions> |
| 303 | + <execution> |
| 304 | + <id>checkstyle</id> |
| 305 | + <phase>${labs64.code-analysis.phase}</phase> |
| 306 | + <goals> |
| 307 | + <goal>check</goal> |
| 308 | + </goals> |
| 309 | + </execution> |
| 310 | + </executions> |
| 311 | + <dependencies> |
| 312 | + <dependency> |
| 313 | + <groupId>com.labs64.commons</groupId> |
| 314 | + <artifactId>code-analysis</artifactId> |
| 315 | + <version>${labs64.code-analysis.version}</version> |
| 316 | + </dependency> |
| 317 | + </dependencies> |
| 318 | + </plugin> |
| 319 | + |
| 320 | + <!-- https://spotbugs.github.io --> |
| 321 | + <plugin> |
| 322 | + <groupId>com.github.spotbugs</groupId> |
| 323 | + <artifactId>spotbugs-maven-plugin</artifactId> |
| 324 | + <version>${spotbugs-maven-plugin.version}</version> |
| 325 | + <configuration> |
| 326 | + <includeFilterFile>labs64-code-analysis/spotbugs.xml</includeFilterFile> |
| 327 | + <onlyAnalyze>com.labs64.-</onlyAnalyze> |
| 328 | + <failOnError>${labs64.code-analysis.failOnViolation}</failOnError> |
| 329 | + </configuration> |
| 330 | + <executions> |
| 331 | + <execution> |
| 332 | + <id>spotbugs</id> |
| 333 | + <phase>${labs64.code-analysis.phase}</phase> |
| 334 | + <goals> |
| 335 | + <goal>check</goal> |
| 336 | + </goals> |
| 337 | + </execution> |
| 338 | + </executions> |
| 339 | + <dependencies> |
| 340 | + <dependency> |
| 341 | + <groupId>com.labs64.commons</groupId> |
| 342 | + <artifactId>code-analysis</artifactId> |
| 343 | + <version>${labs64.code-analysis.version}</version> |
| 344 | + </dependency> |
| 345 | + </dependencies> |
| 346 | + </plugin> |
| 347 | + |
| 348 | + <!-- https://maven.apache.org/plugins/maven-pmd-plugin/usage.html --> |
| 349 | + <plugin> |
| 350 | + <groupId>org.apache.maven.plugins</groupId> |
| 351 | + <artifactId>maven-pmd-plugin</artifactId> |
| 352 | + <version>${maven-pmd-plugin.version}</version> |
| 353 | + <configuration> |
| 354 | + <rulesets> |
| 355 | + <ruleset>labs64-code-analysis/pmd.xml</ruleset> |
| 356 | + </rulesets> |
| 357 | + <excludeRoots> |
| 358 | + <excludeRoot>target/generated-sources/xjc</excludeRoot> |
| 359 | + <excludeRoot>target/generated-sources/jaxws</excludeRoot> |
| 360 | + </excludeRoots> |
| 361 | + <failOnViolation>${labs64.code-analysis.failOnViolation}</failOnViolation> |
| 362 | + <printFailingErrors>true</printFailingErrors> |
| 363 | + </configuration> |
| 364 | + <executions> |
| 365 | + <execution> |
| 366 | + <id>pmd</id> |
| 367 | + <phase>${labs64.code-analysis.phase}</phase> |
| 368 | + <goals> |
| 369 | + <goal>check</goal> |
| 370 | + </goals> |
| 371 | + </execution> |
| 372 | + </executions> |
| 373 | + <dependencies> |
| 374 | + <dependency> |
| 375 | + <groupId>com.labs64.commons</groupId> |
| 376 | + <artifactId>code-analysis</artifactId> |
| 377 | + <version>${labs64.code-analysis.version}</version> |
| 378 | + </dependency> |
| 379 | + </dependencies> |
| 380 | + </plugin> |
273 | 381 | </plugins> |
274 | 382 | </pluginManagement> |
275 | 383 |
|
|
278 | 386 | <groupId>org.apache.maven.plugins</groupId> |
279 | 387 | <artifactId>maven-enforcer-plugin</artifactId> |
280 | 388 | </plugin> |
| 389 | + <plugin> |
| 390 | + <groupId>org.apache.maven.plugins</groupId> |
| 391 | + <artifactId>maven-site-plugin</artifactId> |
| 392 | + </plugin> |
281 | 393 | </plugins> |
282 | 394 | </build> |
283 | 395 |
|
|
0 commit comments