Skip to content

Commit c4adab2

Browse files
committed
iluwatar#996 add coverage profile
1 parent 1564562 commit c4adab2

File tree

1 file changed

+29
-45
lines changed

1 file changed

+29
-45
lines changed

pom.xml

Lines changed: 29 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -353,37 +353,6 @@
353353
<build>
354354
<pluginManagement>
355355
<plugins>
356-
<!-- This plugin's configuration is used to store Eclipse m2e settings
357-
only. It has no influence on the Maven build itself. TODO: Remove when the
358-
m2e plugin can correctly bind to Maven lifecycle -->
359-
<plugin>
360-
<groupId>org.eclipse.m2e</groupId>
361-
<artifactId>lifecycle-mapping</artifactId>
362-
<version>1.0.0</version>
363-
<configuration>
364-
<lifecycleMappingMetadata>
365-
<pluginExecutions>
366-
<pluginExecution>
367-
<pluginExecutionFilter>
368-
<groupId>org.jacoco</groupId>
369-
<artifactId>
370-
jacoco-maven-plugin
371-
</artifactId>
372-
<versionRange>
373-
[0.6.2,)
374-
</versionRange>
375-
<goals>
376-
<goal>prepare-agent</goal>
377-
</goals>
378-
</pluginExecutionFilter>
379-
<action>
380-
<ignore/>
381-
</action>
382-
</pluginExecution>
383-
</pluginExecutions>
384-
</lifecycleMappingMetadata>
385-
</configuration>
386-
</plugin>
387356
<plugin>
388357
<groupId>org.apache.maven.plugins</groupId>
389358
<artifactId>maven-compiler-plugin</artifactId>
@@ -410,20 +379,6 @@
410379
</pluginManagement>
411380

412381
<plugins>
413-
<plugin>
414-
<groupId>org.jacoco</groupId>
415-
<artifactId>jacoco-maven-plugin</artifactId>
416-
<version>${jacoco.version}</version>
417-
<executions>
418-
<execution>
419-
<id>prepare-agent</id>
420-
<goals>
421-
<goal>prepare-agent</goal>
422-
</goals>
423-
</execution>
424-
</executions>
425-
</plugin>
426-
427382
<!--checkstyle plug-in. checking against googles styles
428383
see config at checkstyle.xml
429384
-->
@@ -474,6 +429,35 @@
474429
</plugins>
475430
</build>
476431

432+
<profiles>
433+
<profile>
434+
<id>coverage</id>
435+
<build>
436+
<plugins>
437+
<plugin>
438+
<groupId>org.jacoco</groupId>
439+
<artifactId>jacoco-maven-plugin</artifactId>
440+
<version>${jacoco.version}</version>
441+
<executions>
442+
<execution>
443+
<id>prepare-agent</id>
444+
<goals>
445+
<goal>prepare-agent</goal>
446+
</goals>
447+
</execution>
448+
<execution>
449+
<id>report</id>
450+
<goals>
451+
<goal>report</goal>
452+
</goals>
453+
</execution>
454+
</executions>
455+
</plugin>
456+
</plugins>
457+
</build>
458+
</profile>
459+
</profiles>
460+
477461
<reporting>
478462
<plugins>
479463
<plugin>

0 commit comments

Comments
 (0)