Commit 742248b11744e091a55ed10461e790103dc71034

Authored by Mickael Boiziot
1 parent 576a5fff
Exists in master and in 1 other branch b6.0.X

Add Jacoco

Showing 1 changed file with 58 additions and 6 deletions   Show diff stats
pom.xml
... ... @@ -86,6 +86,37 @@
86 86 </execution>
87 87 </executions>
88 88 </plugin>
  89 + <plugin>
  90 + <groupId>org.jacoco</groupId>
  91 + <artifactId>jacoco-maven-plugin</artifactId>
  92 + <version>0.8.4</version>
  93 + <executions>
  94 + <execution>
  95 + <id>default-prepare-agent</id>
  96 + <goals>
  97 + <goal>prepare-agent</goal>
  98 + </goals>
  99 + </execution>
  100 + <execution>
  101 + <id>default-prepare-agent-integration</id>
  102 + <goals>
  103 + <goal>prepare-agent-integration</goal>
  104 + </goals>
  105 + </execution>
  106 + <execution>
  107 + <id>default-report</id>
  108 + <goals>
  109 + <goal>report</goal>
  110 + </goals>
  111 + </execution>
  112 + <execution>
  113 + <id>default-report-integration</id>
  114 + <goals>
  115 + <goal>report-integration</goal>
  116 + </goals>
  117 + </execution>
  118 + </executions>
  119 + </plugin>
89 120 </plugins>
90 121  
91 122 <!-- Avoid Eclipse warnings "Plugin execution not covered by lifecycle configuration" -->
... ... @@ -119,6 +150,27 @@
119 150 </pluginManagement>
120 151 </build>
121 152  
  153 + <reporting>
  154 + <plugins>
  155 + <plugin>
  156 + <groupId>org.jacoco</groupId>
  157 + <artifactId>jacoco-maven-plugin</artifactId>
  158 + <reportSets>
  159 + <reportSet>
  160 + <reports>
  161 + <report>report-integration</report>
  162 + </reports>
  163 + </reportSet>
  164 + <reportSet>
  165 + <reports>
  166 + <report>report</report>
  167 + </reports>
  168 + </reportSet>
  169 + </reportSets>
  170 + </plugin>
  171 + </plugins>
  172 + </reporting>
  173 +
122 174 <!-- The project dependencies -->
123 175 <dependencies>
124 176 <dependency>
... ... @@ -129,12 +181,12 @@
129 181 <scope>compile</scope>
130 182 </dependency>
131 183  
132   - <!-- Needed to compile with Java 11+ as removed from Java -->
133   - <dependency>
134   - <groupId>javax.xml.bind</groupId>
135   - <artifactId>jaxb-api</artifactId>
136   - <version>2.3.1</version>
137   - </dependency>
  184 + <!-- Needed to compile with Java 11+ as removed from Java -->
  185 + <dependency>
  186 + <groupId>javax.xml.bind</groupId>
  187 + <artifactId>jaxb-api</artifactId>
  188 + <version>2.3.1</version>
  189 + </dependency>
138 190  
139 191 <dependency>
140 192 <groupId>junit</groupId>
... ...