Code Review
/
yangtools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix Sonar integration
[yangtools.git]
/
yang
/
yang-data-impl
/
pom.xml
diff --git
a/yang/yang-data-impl/pom.xml
b/yang/yang-data-impl/pom.xml
index 3d8d4db14e1e60f0ac24a728169ce065257b7a71..a91961244f9b5692047dba95bb22ed76f855a6a5 100644
(file)
--- a/
yang/yang-data-impl/pom.xml
+++ b/
yang/yang-data-impl/pom.xml
@@
-21,6
+21,10
@@
<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
<name>${project.artifactId}</name>
<description>${project.artifactId}</description>
+ <properties>
+ <sonar.jacoco.reportPath>${project.basedir}/../../target/jacoco.exec</sonar.jacoco.reportPath>
+ </properties>
+
<dependencyManagement>
<dependencies>
<dependency>
<dependencyManagement>
<dependencies>
<dependency>
@@
-82,13
+86,12
@@
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
<artifactId>jacoco-maven-plugin</artifactId>
<executions>
<execution>
- <id>prepare-ut-agent</id>
- <phase>process-test-classes</phase>
+ <id>pre-unit-test</id>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
<goals>
<goal>prepare-agent</goal>
</goals>
<configuration>
- <destFile>${
sonar.jacoco.reportPath}
</destFile>
+ <destFile>${
project.build.directory}/code-coverage/jacoco.exec
</destFile>
<propertyName>jacoco.agent.ut.arg</propertyName>
</configuration>
</execution>
<propertyName>jacoco.agent.ut.arg</propertyName>
</configuration>
</execution>
@@
-99,7
+102,7
@@
<goal>prepare-agent</goal>
</goals>
<configuration>
<goal>prepare-agent</goal>
</goals>
<configuration>
- <destFile>${
sonar.jacoco.itReportPath}
</destFile>
+ <destFile>${
project.build.directory}/code-coverage/jacoco-it.exec
</destFile>
<propertyName>jacoco.agent.it.arg</propertyName>
</configuration>
</execution>
<propertyName>jacoco.agent.it.arg</propertyName>
</configuration>
</execution>