Skip to content

Commit 830cdb0

Browse files
authored
Update pom.xml
1 parent 7da34ff commit 830cdb0

File tree

1 file changed

+26
-8
lines changed

1 file changed

+26
-8
lines changed

pom.xml

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -664,26 +664,44 @@
664664
<groupId>org.jacoco</groupId>
665665
<artifactId>jacoco-maven-plugin</artifactId>
666666
<version>0.8.8</version>
667-
<configuration>
668-
<excludes>
669-
<exclude>com/ericsson/ei/controller/model/*</exclude>
670-
</excludes>
671-
</configuration>
672667
<executions>
673668
<execution>
674-
<id>jacoco-initialize</id>
669+
<id>prepare-agent</id>
675670
<goals>
676671
<goal>prepare-agent</goal>
677672
</goals>
678673
</execution>
679674
<execution>
680-
<id>jacoco-site</id>
681-
<phase>package</phase>
675+
<id>report</id>
676+
<phase>prepare-package</phase>
682677
<goals>
683678
<goal>report</goal>
684679
</goals>
685680
</execution>
681+
<execution>
682+
<id>post-unit-test</id>
683+
<phase>test</phase>
684+
<goals>
685+
<goal>report</goal>
686+
</goals>
687+
<configuration>
688+
<!-- Sets the path to the file which contains
689+
the execution data. -->
690+
<dataFile>target/jacoco.exec</dataFile>
691+
<!-- Sets the output directory for the code coverage
692+
report. -->
693+
<outputDirectory>target/jacoco</outputDirectory>
694+
</configuration>
695+
</execution>
686696
</executions>
697+
<configuration>
698+
<excludes>
699+
<exclude>com/ericsson/ei/controller/model/*</exclude>
700+
</excludes>
701+
<systemPropertyVariables>
702+
<jacoco-agent.destfile>target/jacoco.exec</jacoco-agent.destfile>
703+
</systemPropertyVariables>
704+
</configuration>
687705
</plugin>
688706
</plugins>
689707
</build>

0 commit comments

Comments
 (0)