diff options
author | Mirko Friedenhagen <mfriedenhagen@gmail.com> | 2013-11-29 23:02:44 +0100 |
---|---|---|
committer | Mirko Friedenhagen <mfriedenhagen@gmail.com> | 2013-11-29 23:10:11 +0100 |
commit | 0dbd9687afce808c115bd843ae596d3c10db9ac5 (patch) | |
tree | 8ba62d93d63d684e475559e2fbfe0fe13ccccbd3 /jacoco-maven-plugin.test/it | |
parent | 848c2935353f2e22028a543e5fd4e2ca6d8a9aea (diff) | |
download | jacoco-0dbd9687afce808c115bd843ae596d3c10db9ac5.tar.gz |
Workaround for Maven-2 compatibility.
* Use String parameters and Enum.valueOf methods because old versions of
plexus-container-default used in Maven-2 do not include a EnumConverter.
* Add implementation hints in POMs because Maven-2 is unable to guess
implementing classes correctly.
See http://blog.sonatype.com/people/2011/03/configuring-plugin-goals-in-maven-3/#.UpkF45FIhsp)
* Use concrete type ArrayList instead of List in MergeMojo because Maven-2 is not
able to deduce a corresponding class for an interface.
Diffstat (limited to 'jacoco-maven-plugin.test/it')
5 files changed, 18 insertions, 9 deletions
diff --git a/jacoco-maven-plugin.test/it/it-check-fails-halt/pom.xml b/jacoco-maven-plugin.test/it/it-check-fails-halt/pom.xml index 7cb5b40f..332a1cc5 100644 --- a/jacoco-maven-plugin.test/it/it-check-fails-halt/pom.xml +++ b/jacoco-maven-plugin.test/it/it-check-fails-halt/pom.xml @@ -40,13 +40,15 @@ </goals> <configuration> <rules> + <!-- implmentation is needed only for Maven 2 --> <rule implementation="org.jacoco.maven.RuleConfiguration"> <element>CLASS</element> <includes> <include>Example</include> </includes> <limits> - <limit> + <!-- implmentation is needed only for Maven 2 --> + <limit implementation="org.jacoco.report.check.Limit"> <counter>METHOD</counter> <value>MISSEDCOUNT</value> <maximum>0</maximum> diff --git a/jacoco-maven-plugin.test/it/it-check-fails-no-halt/pom.xml b/jacoco-maven-plugin.test/it/it-check-fails-no-halt/pom.xml index 58f9b065..dd2181a5 100644 --- a/jacoco-maven-plugin.test/it/it-check-fails-no-halt/pom.xml +++ b/jacoco-maven-plugin.test/it/it-check-fails-no-halt/pom.xml @@ -41,10 +41,12 @@ <configuration> <haltOnFailure>false</haltOnFailure> <rules> - <rule> + <!-- implmentation is needed only for Maven 2 --> + <rule implementation="org.jacoco.maven.RuleConfiguration"> <element>BUNDLE</element> <limits> - <limit> + <!-- implmentation is needed only for Maven 2 --> + <limit implementation="org.jacoco.report.check.Limit"> <counter>METHOD</counter> <value>MISSEDCOUNT</value> <maximum>0</maximum> diff --git a/jacoco-maven-plugin.test/it/it-check-passes/pom.xml b/jacoco-maven-plugin.test/it/it-check-passes/pom.xml index c3beaaec..9b86919d 100644 --- a/jacoco-maven-plugin.test/it/it-check-passes/pom.xml +++ b/jacoco-maven-plugin.test/it/it-check-passes/pom.xml @@ -40,15 +40,18 @@ </goals> <configuration> <rules> - <rule> + <!-- implmentation is needed only for Maven 2 --> + <rule implementation="org.jacoco.maven.RuleConfiguration"> <element>BUNDLE</element> <limits> - <limit> + <!-- implmentation is needed only for Maven 2 --> + <limit implementation="org.jacoco.report.check.Limit"> <counter>INSTRUCTION</counter> <value>COVEREDRATIO</value> <minimum>0.90</minimum> </limit> - <limit> + <!-- implmentation is needed only for Maven 2 --> + <limit implementation="org.jacoco.report.check.Limit"> <counter>CLASS</counter> <value>MISSEDCOUNT</value> <maximum>0</maximum> diff --git a/jacoco-maven-plugin.test/it/it-dump/pom.xml b/jacoco-maven-plugin.test/it/it-dump/pom.xml index 628b4a31..a97626cc 100644 --- a/jacoco-maven-plugin.test/it/it-dump/pom.xml +++ b/jacoco-maven-plugin.test/it/it-dump/pom.xml @@ -50,10 +50,12 @@ </goals> <configuration> <rules> - <rule> + <!-- implmentation is needed only for Maven 2 --> + <rule implementation="org.jacoco.maven.RuleConfiguration"> <element>BUNDLE</element> <limits> - <limit> + <!-- implmentation is needed only for Maven 2 --> + <limit implementation="org.jacoco.report.check.Limit"> <counter>CLASS</counter> <value>COVEREDCOUNT</value> <minimum>1</minimum> diff --git a/jacoco-maven-plugin.test/it/it-merge-passes/it-merge-passes-merge/pom.xml b/jacoco-maven-plugin.test/it/it-merge-passes/it-merge-passes-merge/pom.xml index 905733c6..796b6844 100644 --- a/jacoco-maven-plugin.test/it/it-merge-passes/it-merge-passes-merge/pom.xml +++ b/jacoco-maven-plugin.test/it/it-merge-passes/it-merge-passes-merge/pom.xml @@ -34,7 +34,7 @@ </goals> <configuration> <fileSets> - <fileSet> + <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet"> <directory>${project.parent.build.directory}</directory> <includes> <include>*.exec</include> |