From db5fefeb4c45b22c67b5a14a7fdf945050a2a6bf Mon Sep 17 00:00:00 2001
From: Sylwester Lachiewicz
Date: Thu, 10 Jan 2019 09:44:31 +0100
Subject: Require at least Maven 3.0 for jacoco-maven-plugin (#821)
---
jacoco-maven-plugin.test/it/it-check-fails-halt/pom.xml | 6 ++----
jacoco-maven-plugin.test/it/it-check-fails-no-halt/pom.xml | 6 ++----
jacoco-maven-plugin.test/it/it-check-passes/pom.xml | 9 +++------
jacoco-maven-plugin.test/it/it-dump/pom.xml | 6 ++----
jacoco-maven-plugin.test/it/it-java9/pom.xml | 6 ++----
jacoco-maven-plugin/pom.xml | 4 ++--
jacoco-maven-plugin/src/org/jacoco/maven/CheckMojo.java | 12 +++---------
jacoco-maven-plugin/src/org/jacoco/maven/MergeMojo.java | 5 +----
org.jacoco.doc/docroot/doc/changes.html | 2 ++
org.jacoco.doc/docroot/doc/maven.html | 2 +-
org.jacoco.examples/build/pom-it.xml | 6 ++----
org.jacoco.examples/build/pom-offline.xml | 6 ++----
org.jacoco.examples/build/pom.xml | 6 ++----
13 files changed, 26 insertions(+), 50 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 176e5ffc..a4183ab8 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,15 +40,13 @@
-
-
+
CLASS
Example
-
-
+
METHOD
MISSEDCOUNT
0
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 3cafa0f8..636bf77e 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,12 +41,10 @@
false
-
-
+
BUNDLE
-
-
+
METHOD
MISSEDCOUNT
0
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 80195ced..4004a14c 100644
--- a/jacoco-maven-plugin.test/it/it-check-passes/pom.xml
+++ b/jacoco-maven-plugin.test/it/it-check-passes/pom.xml
@@ -40,18 +40,15 @@
-
-
+
BUNDLE
-
-
+
INSTRUCTION
COVEREDRATIO
0.90
-
-
+
CLASS
MISSEDCOUNT
0
diff --git a/jacoco-maven-plugin.test/it/it-dump/pom.xml b/jacoco-maven-plugin.test/it/it-dump/pom.xml
index 8e209914..d4e8403f 100644
--- a/jacoco-maven-plugin.test/it/it-dump/pom.xml
+++ b/jacoco-maven-plugin.test/it/it-dump/pom.xml
@@ -50,12 +50,10 @@
-
-
+
BUNDLE
-
-
+
CLASS
COVEREDCOUNT
1
diff --git a/jacoco-maven-plugin.test/it/it-java9/pom.xml b/jacoco-maven-plugin.test/it/it-java9/pom.xml
index 77503567..a52a28a4 100644
--- a/jacoco-maven-plugin.test/it/it-java9/pom.xml
+++ b/jacoco-maven-plugin.test/it/it-java9/pom.xml
@@ -49,11 +49,9 @@
-
-
+
-
-
+
INSTRUCTION
COVEREDCOUNT
8
diff --git a/jacoco-maven-plugin/pom.xml b/jacoco-maven-plugin/pom.xml
index f3819f0f..f048f402 100644
--- a/jacoco-maven-plugin/pom.xml
+++ b/jacoco-maven-plugin/pom.xml
@@ -27,7 +27,7 @@
The JaCoCo Maven Plugin provides the JaCoCo runtime agent to your tests and allows basic report creation.
- 2.2.1
+ 3.0
@@ -54,7 +54,7 @@
org.apache.maven
- maven-project
+ maven-core
${project.prerequisites.maven}
diff --git a/jacoco-maven-plugin/src/org/jacoco/maven/CheckMojo.java b/jacoco-maven-plugin/src/org/jacoco/maven/CheckMojo.java
index 6b37a6b4..ad021b37 100644
--- a/jacoco-maven-plugin/src/org/jacoco/maven/CheckMojo.java
+++ b/jacoco-maven-plugin/src/org/jacoco/maven/CheckMojo.java
@@ -64,12 +64,6 @@ public class CheckMojo extends AbstractJacocoMojo implements IViolationsOutput {
*
*
*
- * Note that you must use implementation hints for
- * rule and limit when using Maven 2, with Maven 3 you do
- * not need to specify the attributes.
- *
- *
- *
* This example requires an overall instruction coverage of 80% and no class
* must be missed:
*
@@ -77,15 +71,15 @@ public class CheckMojo extends AbstractJacocoMojo implements IViolationsOutput {
*
* {@code
*
- *
+ *
* BUNDLE
*
- *
+ *
* INSTRUCTION
* COVEREDRATIO
* 0.80
*
- *
+ *
* CLASS
* MISSEDCOUNT
* 0
diff --git a/jacoco-maven-plugin/src/org/jacoco/maven/MergeMojo.java b/jacoco-maven-plugin/src/org/jacoco/maven/MergeMojo.java
index 8b882e08..bbac299d 100644
--- a/jacoco-maven-plugin/src/org/jacoco/maven/MergeMojo.java
+++ b/jacoco-maven-plugin/src/org/jacoco/maven/MergeMojo.java
@@ -43,13 +43,10 @@ public class MergeMojo extends AbstractJacocoMojo {
/**
* This mojo accepts any number of execution data file sets.
*
- * Note that you need an implementation hint on fileset
- * with Maven 2 (not needed with Maven 3):
- *
*
*
* <fileSets>
- * <fileSet implementation="org.apache.maven.shared.model.fileset.FileSet">
+ * <fileSet>
* <directory>${project.build.directory}</directory>
* <includes>
* <include>*.exec</include>
diff --git a/org.jacoco.doc/docroot/doc/changes.html b/org.jacoco.doc/docroot/doc/changes.html
index cc483851..9b535b0f 100644
--- a/org.jacoco.doc/docroot/doc/changes.html
+++ b/org.jacoco.doc/docroot/doc/changes.html
@@ -22,6 +22,8 @@
New Features
+ - jacoco-maven-plugin now requires at least Maven 3.0
+ (GitHub #821).
- JaCoCo now officially supports Java 11
(GitHub #760).
- Branch added by the Kotlin compiler for "unsafe" cast operator is filtered
diff --git a/org.jacoco.doc/docroot/doc/maven.html b/org.jacoco.doc/docroot/doc/maven.html
index 0546c1bc..5284978e 100644
--- a/org.jacoco.doc/docroot/doc/maven.html
+++ b/org.jacoco.doc/docroot/doc/maven.html
@@ -73,7 +73,7 @@
- - Maven 2.1.0 or higher and
+ - Maven 3.0 or higher and
- Java 1.5 or higher (for both, the Maven runtime and the test executor).
diff --git a/org.jacoco.examples/build/pom-it.xml b/org.jacoco.examples/build/pom-it.xml
index 91886d8b..3ead2da3 100644
--- a/org.jacoco.examples/build/pom-it.xml
+++ b/org.jacoco.examples/build/pom-it.xml
@@ -74,12 +74,10 @@
-
-
+
BUNDLE
-
-
+
COMPLEXITY
COVEREDRATIO
0.60
diff --git a/org.jacoco.examples/build/pom-offline.xml b/org.jacoco.examples/build/pom-offline.xml
index 0763f4a4..a972d234 100644
--- a/org.jacoco.examples/build/pom-offline.xml
+++ b/org.jacoco.examples/build/pom-offline.xml
@@ -75,12 +75,10 @@
-
-
+
BUNDLE
-
-
+
COMPLEXITY
COVEREDRATIO
0.60
diff --git a/org.jacoco.examples/build/pom.xml b/org.jacoco.examples/build/pom.xml
index 26c6033d..fa257c26 100644
--- a/org.jacoco.examples/build/pom.xml
+++ b/org.jacoco.examples/build/pom.xml
@@ -62,12 +62,10 @@
-
-
+
BUNDLE
-
-
+
COMPLEXITY
COVEREDRATIO
0.60
--
cgit v1.2.3