Skip to content

Commit 2aecedf

Browse files
leonard84jricher
authored andcommitted
Replace cobertura with jacoco to generate code-coverage for codecov.io
Change-Id: I031144c375d73aaa39d0a6111d37223ad6e4d655
1 parent f43ff53 commit 2aecedf

File tree

1 file changed

+22
-38
lines changed

1 file changed

+22
-38
lines changed

pom.xml

Lines changed: 22 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
22
<!--
33
Copyright 2017 The MITRE Corporation
44
and the MIT Internet Trust Consortium
5-
5+
66
Licensed under the Apache License, Version 2.0 (the "License");
77
you may not use this file except in compliance with the License.
88
You may obtain a copy of the License at
9-
9+
1010
http://www.apache.org/licenses/LICENSE-2.0
11-
11+
1212
Unless required by applicable law or agreed to in writing, software
1313
distributed under the License is distributed on an "AS IS" BASIS,
1414
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -250,6 +250,25 @@
250250
</execution>
251251
</executions>
252252
</plugin>
253+
<plugin>
254+
<groupId>org.jacoco</groupId>
255+
<artifactId>jacoco-maven-plugin</artifactId>
256+
<version>0.7.9</version>
257+
<executions>
258+
<execution>
259+
<goals>
260+
<goal>prepare-agent</goal>
261+
</goals>
262+
</execution>
263+
<execution>
264+
<id>report</id>
265+
<phase>test</phase>
266+
<goals>
267+
<goal>report</goal>
268+
</goals>
269+
</execution>
270+
</executions>
271+
</plugin>
253272
<plugin>
254273
<groupId>org.apache.maven.plugins</groupId>
255274
<artifactId>maven-site-plugin</artifactId>
@@ -315,28 +334,6 @@
315334
</excludes>
316335
</configuration>
317336
</plugin>
318-
<plugin>
319-
<groupId>org.codehaus.mojo</groupId>
320-
<artifactId>cobertura-maven-plugin</artifactId>
321-
<version>2.7</version>
322-
<configuration>
323-
<formats>
324-
<format>html</format>
325-
<format>xml</format>
326-
</formats>
327-
</configuration>
328-
<!-- <exclusions> -->
329-
<!-- <exclusion> -->
330-
<!-- <groupId>asm</groupId> -->
331-
<!-- <artifactId>asm</artifactId> -->
332-
<!-- </exclusion> -->
333-
<!-- <exclusion> -->
334-
<!-- <groupId>asm</groupId> -->
335-
<!-- <artifactId>asm-attrs</artifactId> -->
336-
<!-- </exclusion> -->
337-
<!-- </exclusions> -->
338-
339-
</plugin>
340337
</reportPlugins>
341338
</configuration>
342339
</plugin>
@@ -512,14 +509,6 @@
512509
<version>1.9.5</version>
513510
<scope>test</scope>
514511
</dependency>
515-
<dependency>
516-
<groupId>org.codehaus.mojo</groupId>
517-
<artifactId>cobertura-maven-plugin</artifactId>
518-
<version>2.7</version>
519-
<scope>test</scope>
520-
<type>maven-plugin</type>
521-
</dependency>
522-
523512
<!-- MITREid Connect components -->
524513
<dependency>
525514
<groupId>org.mitre</groupId>
@@ -650,11 +639,6 @@
650639
<groupId>javax.servlet.jsp</groupId>
651640
<artifactId>jsp-api</artifactId>
652641
</dependency>
653-
<dependency>
654-
<groupId>org.codehaus.mojo</groupId>
655-
<artifactId>cobertura-maven-plugin</artifactId>
656-
<type>maven-plugin</type>
657-
</dependency>
658642
</dependencies>
659643

660644
</project>

0 commit comments

Comments
 (0)