|
3 | 3 | <parent>
|
4 | 4 | <groupId>org.jenkins-ci.plugins</groupId>
|
5 | 5 | <artifactId>plugin</artifactId>
|
6 |
| - <version>1.625.3</version> |
| 6 | + <version>1.580</version> |
7 | 7 | </parent>
|
8 | 8 |
|
9 | 9 | <url>http://wiki.jenkins-ci.org/display/JENKINS/Pretested+Integration+Plugin</url>
|
|
75 | 75 | * mvn compile findbugs:findbugs to use findbugs and get xml report
|
76 | 76 | * mvn checkstyle:checkstyle to do checkstyle analysis and get xml report
|
77 | 77 | * mvn pmd:pmd pmd:cpd to use PMD tool and get xml report for pmd and cpd
|
| 78 | + * mvn javancss:check will also do java code analysis and report to console |
| 79 | + * use mvn javancss:report to make a report in xml and html |
78 | 80 | * mvn jdepend:generate will do yet another java code analysis and report
|
79 | 81 |
|
80 | 82 | * mvn site will generate site report, including all the above results.
|
|
121 | 123 | <plugin>
|
122 | 124 | <groupId>org.jenkins-ci.tools</groupId>
|
123 | 125 | <artifactId>maven-hpi-plugin</artifactId>
|
| 126 | + <version>1.115</version> |
124 | 127 | <configuration>
|
125 | 128 | <pluginVersionDescription>${buildNumber}</pluginVersionDescription>
|
126 | 129 | <compatibleSinceVersion>2.0</compatibleSinceVersion>
|
|
129 | 132 |
|
130 | 133 |
|
131 | 134 | <!--
|
132 |
| - Use java 1.8. We need this for our testing environment. Java 7 was EOL last year |
| 135 | + Use java 1.7. We need this for our testing environment. Java 6 was EOL last year |
133 | 136 | and i was starting to get some wierd errors with FindBugs plugin. Plugins also require
|
134 | 137 | Java 7 with the version of Jenkins we're using so i decided to move to Java 7 which also soon
|
135 | 138 | is EOL.
|
|
138 | 141 | <groupId>org.apache.maven.plugins</groupId>
|
139 | 142 | <artifactId>maven-compiler-plugin</artifactId>
|
140 | 143 | <configuration>
|
141 |
| - <source>1.8</source> |
142 |
| - <target>1.8</target> |
| 144 | + <source>1.7</source> |
| 145 | + <target>1.7</target> |
143 | 146 | </configuration>
|
144 | 147 | </plugin>
|
145 | 148 |
|
|
151 | 154 | <plugin>
|
152 | 155 | <groupId>org.apache.maven.plugins</groupId>
|
153 | 156 | <artifactId>maven-failsafe-plugin</artifactId>
|
154 |
| - <version>2.19.1</version> |
| 157 | + <version>2.17</version> |
155 | 158 | <executions>
|
156 | 159 | <execution>
|
157 | 160 | <goals>
|
|
170 | 173 | <plugin>
|
171 | 174 | <groupId>org.apache.maven.plugins</groupId>
|
172 | 175 | <artifactId>maven-surefire-plugin</artifactId>
|
173 |
| - <version>2.19.1</version> |
| 176 | + <version>2.17</version> |
174 | 177 | <configuration>
|
175 | 178 | <excludes>
|
176 | 179 | <exclude>**/CredentialsTest.java</exclude>
|
|
190 | 193 | <plugin>
|
191 | 194 | <groupId>org.codehaus.mojo</groupId>
|
192 | 195 | <artifactId>cobertura-maven-plugin</artifactId>
|
| 196 | + <version>2.6</version> |
193 | 197 | <configuration>
|
194 | 198 | <formats>
|
195 | 199 | <format>xml</format> <!-- Jenkins uses the xml format -->
|
|
251 | 255 | <plugin>
|
252 | 256 | <groupId>org.codehaus.mojo</groupId>
|
253 | 257 | <artifactId>findbugs-maven-plugin</artifactId>
|
254 |
| - <version>3.0.4</version> |
| 258 | + <version>2.5.5</version> |
255 | 259 | <configuration>
|
256 | 260 | <xmlOutput>true</xmlOutput>
|
257 | 261 | </configuration>
|
|
277 | 281 | </configuration>
|
278 | 282 | </plugin>
|
279 | 283 |
|
| 284 | + |
| 285 | + <!-- |
| 286 | + Java source code complexity analysis, use javancss:check to get result |
| 287 | + Included in reporting below to also include it in the site reports. |
| 288 | + --> |
| 289 | + <plugin> |
| 290 | + <groupId>org.codehaus.mojo</groupId> |
| 291 | + <artifactId>javancss-maven-plugin</artifactId> |
| 292 | + <version>2.1</version> |
| 293 | + <configuration> |
| 294 | + <failOnViolation>false</failOnViolation> |
| 295 | + </configuration> |
| 296 | + </plugin> |
| 297 | + |
280 | 298 | <!--
|
281 | 299 | Another Java code metric reporting tool. Included in the site report
|
282 | 300 | as a plugin under reporting.
|
|
304 | 322 | <plugin>
|
305 | 323 | <groupId>org.apache.maven.plugins</groupId>
|
306 | 324 | <artifactId>maven-surefire-report-plugin</artifactId>
|
307 |
| - <version>2.19.1</version> |
| 325 | + <version>2.17</version> |
308 | 326 | </plugin>
|
309 | 327 | <plugin>
|
310 | 328 | <groupId>org.apache.maven.plugins</groupId>
|
311 | 329 | <artifactId>maven-failsafe-plugin</artifactId>
|
312 |
| - <version>2.19.1</version> |
| 330 | + <version>2.17</version> |
313 | 331 | </plugin>
|
314 | 332 |
|
315 | 333 | <!-- Will include cobertura report in the site report -->
|
316 | 334 | <plugin>
|
317 | 335 | <groupId>org.codehaus.mojo</groupId>
|
318 | 336 | <artifactId>cobertura-maven-plugin</artifactId>
|
319 |
| - <version>2.7</version> |
| 337 | + <version>2.6</version> |
320 | 338 | </plugin>
|
321 | 339 |
|
322 | 340 | <!--
|
|
344 | 362 | <plugin>
|
345 | 363 | <groupId>org.apache.maven.plugins</groupId>
|
346 | 364 | <artifactId>maven-javadoc-plugin</artifactId>
|
347 |
| - <version>2.10.4</version> |
| 365 | + <version>2.9.1</version> |
| 366 | + |
348 | 367 | </plugin>
|
349 | 368 |
|
350 | 369 |
|
|
355 | 374 | the site lifecycle
|
356 | 375 | -->
|
357 | 376 | <plugin>
|
| 377 | + |
358 | 378 | <groupId>org.apache.maven.plugins</groupId>
|
359 | 379 | <artifactId>maven-pmd-plugin</artifactId>
|
360 |
| - <version>3.7</version> |
| 380 | + <version>3.2</version> |
361 | 381 | </plugin>
|
362 | 382 |
|
363 | 383 | <!--
|
|
367 | 387 | <plugin>
|
368 | 388 | <groupId>org.apache.maven.plugins</groupId>
|
369 | 389 | <artifactId>maven-checkstyle-plugin</artifactId>
|
370 |
| - <version>2.17</version> |
| 390 | + <version>2.12.1</version> |
371 | 391 | <reportSets>
|
372 | 392 | <reportSet>
|
373 | 393 | <reports>
|
|
377 | 397 | </reportSets>
|
378 | 398 | </plugin>
|
379 | 399 |
|
| 400 | + <!-- |
| 401 | + Include java complexity metrics in the site report. |
| 402 | + Also used in build/plugin as a goal to manually use for developers |
| 403 | + or in the build pipeline. |
| 404 | + --> |
| 405 | + <plugin> |
| 406 | + <groupId>org.codehaus.mojo</groupId> |
| 407 | + <artifactId>javancss-maven-plugin</artifactId> |
| 408 | + <version>2.1</version> |
| 409 | + </plugin> |
| 410 | + |
380 | 411 | <!--
|
381 | 412 | Generates cross-reference of the project's source as part of project's reports which other
|
382 | 413 | plugins default links to.
|
|
428 | 459 | </reporting>
|
429 | 460 |
|
430 | 461 | <dependencies>
|
431 |
| - |
432 | 462 | <dependency>
|
433 | 463 | <groupId>org.jenkins-ci.plugins</groupId>
|
434 | 464 | <artifactId>git</artifactId>
|
435 | 465 | <version>2.4.1</version>
|
436 | 466 | </dependency>
|
437 |
| - |
438 | 467 | <dependency>
|
439 | 468 | <groupId>org.jenkins-ci.plugins</groupId>
|
440 | 469 | <artifactId>git-client</artifactId>
|
441 |
| - <version>2.2.1</version> |
| 470 | + <version>1.19.1</version> |
442 | 471 | </dependency>
|
443 |
| - |
444 | 472 | <dependency>
|
445 | 473 | <groupId>org.jenkins-ci.plugins</groupId>
|
446 | 474 | <artifactId>multiple-scms</artifactId>
|
|
454 | 482 | <version>1.37</version>
|
455 | 483 | <optional>true</optional>
|
456 | 484 | </dependency>
|
457 |
| - |
| 485 | + <!-- |
| 486 | + <dependency> |
| 487 | + <groupId>org.jenkins-ci.plugins</groupId> |
| 488 | + <artifactId>matrix-project</artifactId> |
| 489 | + <version>1.3</version> |
| 490 | + <optional>true</optional> |
| 491 | + </dependency> |
| 492 | + --> |
458 | 493 | <dependency>
|
459 | 494 | <groupId>junit</groupId>
|
460 | 495 | <artifactId>junit</artifactId>
|
|
0 commit comments