|
97 | 97 | <version.maven.failsafe.plugin>2.19.1</version.maven.failsafe.plugin>
|
98 | 98 | <version.maven.pmd.plugin>3.6</version.maven.pmd.plugin>
|
99 | 99 | <version.maven.checkstyle.plugin>2.17</version.maven.checkstyle.plugin>
|
| 100 | + <version.maven.gpg.plugin>1.6</version.maven.gpg.plugin> |
| 101 | + <version.maven.nexus.staging.plugin> 1.6.7</version.maven.nexus.staging.plugin> |
100 | 102 |
|
101 | 103 | <version.findbugs.maven.plugin>3.0.3</version.findbugs.maven.plugin>
|
102 |
| - <version.cobertura.maven.plugin>2.7</version.cobertura.maven.plugin> |
103 | 104 | <version.license.maven.plugin>1.8</version.license.maven.plugin>
|
104 |
| - <version.maven.gpg.plugin>1.6</version.maven.gpg.plugin> |
105 |
| - <version.maven.nexus.staging.plugin> 1.6.7</version.maven.nexus.staging.plugin> |
| 105 | + <version.jacoco.maven.plugin>0.7.6.201602180812</version.jacoco.maven.plugin> |
106 | 106 |
|
107 | 107 | </properties>
|
108 | 108 |
|
|
287 | 287 | <groupId>org.apache.maven.plugins</groupId>
|
288 | 288 | <artifactId>maven-failsafe-plugin</artifactId>
|
289 | 289 | </plugin>
|
| 290 | + |
| 291 | + <plugin> |
| 292 | + <!-- record coverage metrics --> |
| 293 | + <groupId>org.jacoco</groupId> |
| 294 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 295 | + </plugin> |
| 296 | + |
290 | 297 | </plugins>
|
291 | 298 | <pluginManagement>
|
292 | 299 | <plugins>
|
|
519 | 526 | <xmlOutput>true</xmlOutput>
|
520 | 527 | </configuration>
|
521 | 528 | </plugin>
|
| 529 | + |
522 | 530 | <plugin>
|
523 |
| - <groupId>org.codehaus.mojo</groupId> |
524 |
| - <artifactId>cobertura-maven-plugin</artifactId> |
525 |
| - <version>${version.cobertura.maven.plugin}</version> |
526 |
| - <configuration> |
527 |
| - <instrumentation> |
528 |
| - <excludes> |
529 |
| - <exclude>**/*Test.class</exclude> |
530 |
| - </excludes> |
531 |
| - </instrumentation> |
532 |
| - </configuration> |
| 531 | + <groupId>org.jacoco</groupId> |
| 532 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 533 | + <version>${version.jacoco.maven.plugin}</version> |
533 | 534 | <executions>
|
534 | 535 | <execution>
|
535 | 536 | <goals>
|
536 |
| - <goal>clean</goal> |
537 |
| - <goal>cobertura</goal> |
| 537 | + <goal>prepare-agent</goal> |
| 538 | + </goals> |
| 539 | + </execution> |
| 540 | + <execution> |
| 541 | + <id>record-unit-test-coverage</id> |
| 542 | + <phase>test</phase> |
| 543 | + <goals> |
| 544 | + <goal>report</goal> |
| 545 | + </goals> |
| 546 | + </execution> |
| 547 | + <execution> |
| 548 | + <id>record-int-test-coverage</id> |
| 549 | + <phase>integration-test</phase> |
| 550 | + <goals> |
| 551 | + <goal>report</goal> |
538 | 552 | </goals>
|
539 | 553 | </execution>
|
540 | 554 | </executions>
|
|
0 commit comments