Fix Sonar integration
[yangtools.git] / third-party / triemap / pom.xml
index 55b4485bf2f3be8ef67beec472fc170f6378783c..05632b0424603ff43444120e79a703f12b56b21b 100644 (file)
 
     <description>Java implementation of a concurrent trie hash map from Scala collections library</description>
 
+    <properties>
+        <sonar.jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</sonar.jacoco.reportPath>
+    </properties>
+
     <dependencies>
         <dependency>
             <groupId>com.google.guava</groupId>
                     <failOnError>true</failOnError>
                 </configuration>
             </plugin>
+            <plugin>
+                <groupId>org.jacoco</groupId>
+                <artifactId>jacoco-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>pre-unit-test</id>
+                        <goals>
+                            <goal>prepare-agent</goal>
+                        </goals>
+                        <configuration>
+                            <destFile>${project.build.directory}/code-coverage/jacoco.exec</destFile>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
         </plugins>
     </build>