Skip to content

Commit 4c3a714

Browse files
authored
Merge pull request #20 from ligangty/master
Add jacoco plugin settings to plugins management
2 parents 22c127d + 1eb83d5 commit 4c3a714

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

pom.xml

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<name>CommonJava Top-Level Parent POM</name>
2727

2828
<url>https://github.com/Commonjava/commonjava</url>
29-
29+
3030
<description>CommonJava top-level parent POM.</description>
3131
<inceptionYear>2012</inceptionYear>
3232

@@ -77,6 +77,9 @@
7777
<version.plugin.resources>2.6</version.plugin.resources>
7878
<version.plugin.site>3.3</version.plugin.site>
7979
<version.plugin.pmd>3.6</version.plugin.pmd>
80+
<version.plugin.jacoco>0.7.5.201505241946</version.plugin.jacoco>
81+
82+
<plugin.jacoco.skip>true</plugin.jacoco.skip>
8083

8184
<skipIllegalTransitiveEnforcement>false</skipIllegalTransitiveEnforcement>
8285
<enforceManagedDeps>true</enforceManagedDeps>
@@ -399,12 +402,44 @@
399402
</execution>
400403
</executions>
401404
</plugin>
405+
<plugin>
406+
<groupId>org.jacoco</groupId>
407+
<artifactId>jacoco-maven-plugin</artifactId>
408+
<version>${version.plugin.jacoco}</version>
409+
<configuration>
410+
<skip>${plugin.jacoco.skip}</skip>
411+
</configuration>
412+
<executions>
413+
<execution>
414+
<id>prepare-ut</id>
415+
<goals>
416+
<goal>prepare-agent</goal>
417+
</goals>
418+
</execution>
419+
<execution>
420+
<id>prepare-it</id>
421+
<goals>
422+
<goal>prepare-agent-integration</goal>
423+
</goals>
424+
</execution>
425+
<execution>
426+
<id>report</id>
427+
<goals>
428+
<goal>report</goal>
429+
</goals>
430+
</execution>
431+
</executions>
432+
</plugin>
402433
</plugins>
403434
</pluginManagement>
404435
<plugins>
405436
<plugin>
406437
<artifactId>maven-enforcer-plugin</artifactId>
407438
</plugin>
439+
<plugin>
440+
<groupId>org.jacoco</groupId>
441+
<artifactId>jacoco-maven-plugin</artifactId>
442+
</plugin>
408443
</plugins>
409444
</build>
410445

0 commit comments

Comments
 (0)