Skip to content

Commit f50b475

Browse files
authored
Switch to use jacoco instead of cobertura (Ericsson#78)
1 parent 8d7752f commit f50b475

File tree

2 files changed

+16
-13
lines changed

2 files changed

+16
-13
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ matrix:
1010
- name: "Style check"
1111
env: TEST_SUITE='com.mycila:license-maven-plugin:check pmd:pmd pmd:cpd pmd:check pmd:cpd-check javadoc:jar'
1212
- name: "Unit tests"
13-
env: TEST_SUITE='test cobertura:cobertura coveralls:report'
13+
env: TEST_SUITE='test jacoco:report coveralls:report'
1414
- name: "OSGi integration"
1515
env: TEST_SUITE='verify -P docker-integration-test,osgi-integration-tests -DskipUTs'
1616
- name: "Standalone integration 3.0"

pom.xml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
<org.apache.servicemix.tooling.depends-maven-plugin.version>1.2</org.apache.servicemix.tooling.depends-maven-plugin.version>
9393
<org.apache.karaf.tooling.karaf-maven-plugin.version>3.0.3</org.apache.karaf.tooling.karaf-maven-plugin.version>
9494
<org.eluder.coveralls.coveralls-maven-plugin.version>4.3.0</org.eluder.coveralls.coveralls-maven-plugin.version>
95-
<org.codehaus.mojo.cobertura-maven-plugin.version>2.7</org.codehaus.mojo.cobertura-maven-plugin.version>
95+
<org.jacoco.jacoco-maven-plugin.version>0.8.4</org.jacoco.jacoco-maven-plugin.version>
9696

9797
<org.apache.maven.plugins.maven-release-plugin.version>2.5.3</org.apache.maven.plugins.maven-release-plugin.version>
9898
<org.apache.maven.plugins.maven-deploy-plugin.version>2.8.2</org.apache.maven.plugins.maven-deploy-plugin.version>
@@ -321,17 +321,6 @@
321321
</configuration>
322322
</plugin>
323323

324-
<plugin>
325-
<groupId>org.codehaus.mojo</groupId>
326-
<artifactId>cobertura-maven-plugin</artifactId>
327-
<version>${org.codehaus.mojo.cobertura-maven-plugin.version}</version>
328-
<configuration>
329-
<format>xml</format>
330-
<maxmem>256m</maxmem>
331-
<aggregate>true</aggregate>
332-
</configuration>
333-
</plugin>
334-
335324
<plugin>
336325
<groupId>org.eluder.coveralls</groupId>
337326
<artifactId>coveralls-maven-plugin</artifactId>
@@ -487,6 +476,20 @@ limitations under the License.
487476
<extensions>true</extensions>
488477
</plugin>
489478

479+
<plugin>
480+
<groupId>org.jacoco</groupId>
481+
<artifactId>jacoco-maven-plugin</artifactId>
482+
<version>${org.jacoco.jacoco-maven-plugin.version}</version>
483+
<executions>
484+
<execution>
485+
<id>prepare-agent</id>
486+
<goals>
487+
<goal>prepare-agent</goal>
488+
</goals>
489+
</execution>
490+
</executions>
491+
</plugin>
492+
490493
<plugin>
491494
<artifactId>maven-compiler-plugin</artifactId>
492495
</plugin>

0 commit comments

Comments
 (0)