- <!-- <plugin> -->
- <!-- <groupId>org.jacoco</groupId> -->
- <!-- <artifactId>jacoco-maven-plugin</artifactId> -->
- <!-- <version>0.8.1</version> -->
- <!-- <configuration> -->
- <!-- <dumpOnExit>true</dumpOnExit> -->
- <!-- <includes> -->
- <!-- <include>org.onap.nbi.*</include> -->
- <!-- </includes> -->
- <!-- <excludes> -->
- <!-- <exclude>**/model/**/*</exclude> -->
- <!-- </excludes> -->
- <!-- </configuration> -->
- <!-- <executions> -->
- <!-- <execution> -->
- <!-- <id>pre-unit-test</id> -->
- <!-- <goals> -->
- <!-- <goal>prepare-agent</goal> -->
- <!-- </goals> -->
- <!-- <configuration> -->
- <!-- <destFile>${project.build.directory}/coverage-reports/jacoco.exec</destFile> -->
- <!-- <append>true</append> -->
- <!-- </configuration> -->
- <!-- </execution> -->
- <!-- <execution> -->
- <!-- <id>pre-integration-test</id> -->
- <!-- <phase>pre-integration-test</phase> -->
- <!-- <goals> -->
- <!-- <goal>prepare-agent</goal> -->
- <!-- </goals> -->
- <!-- <configuration> -->
- <!-- <destFile>${project.build.directory}/coverage-reports/jacoco-it.exec</destFile> -->
- <!-- <append>true</append> -->
- <!-- </configuration> -->
- <!-- </execution> -->
- <!-- <execution> -->
- <!-- <goals> -->
- <!-- <goal>merge</goal> -->
- <!-- </goals> -->
- <!-- <phase>post-integration-test</phase> -->
- <!-- <configuration> -->
- <!-- <fileSets> -->
- <!-- <fileSet -->
- <!-- implementation="org.apache.maven.shared.model.fileset.FileSet"> -->
- <!-- <directory>${project.build.directory}/coverage-reports</directory> -->
- <!-- <includes> -->
- <!-- <include>*.exec</include> -->
- <!-- </includes> -->
- <!-- </fileSet> -->
- <!-- </fileSets> -->
- <!-- <destFile>${project.build.directory}/jacoco-dev.exec</destFile> -->
- <!-- </configuration> -->
- <!-- </execution> -->
- <!-- </executions> -->
- <!-- </plugin> -->
+ <plugin>
+ <groupId>org.jacoco</groupId>
+ <artifactId>jacoco-maven-plugin</artifactId>
+ <version>0.8.5</version>
+ <executions>
+ <execution>
+ <id>default-prepare-agent</id>
+ <goals>
+ <goal>prepare-agent</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>default-report</id>
+ <phase>prepare-package</phase>
+ <goals>
+ <goal>report</goal>
+ </goals>
+ </execution>
+ <execution>
+ <id>default-check</id>
+ <goals>
+ <goal>check</goal>
+ </goals>
+ <configuration>
+ <rules>
+ <rule>
+ <element>PACKAGE</element>
+ <limits>
+ <limit>
+ <counter>COMPLEXITY</counter>
+ <value>COVEREDRATIO</value>
+ <minimum>0.0</minimum>
+ </limit>
+ </limits>
+ </rule>
+ </rules>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>