You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sj...@apache.org on 2022/12/13 10:08:40 UTC

[maven-invoker-plugin] branch MINVOKER-316 created (now 8673771)

This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a change to branch MINVOKER-316
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git


      at 8673771  [MINVOKER-316] Refresh plugins versions in IT tests

This branch includes the following new commits:

     new 8673771  [MINVOKER-316] Refresh plugins versions in IT tests

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[maven-invoker-plugin] 01/01: [MINVOKER-316] Refresh plugins versions in IT tests

Posted by sj...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

sjaranowski pushed a commit to branch MINVOKER-316
in repository https://gitbox.apache.org/repos/asf/maven-invoker-plugin.git

commit 8673771bd3501ef9dc19640f9c659e2007250059
Author: Slawomir Jaranowski <s....@gmail.com>
AuthorDate: Tue Dec 13 11:06:20 2022 +0100

    [MINVOKER-316] Refresh plugins versions in IT tests
    
    use properties for plugins version used in IT tests
---
 pom.xml                                                 | 12 ++++++++++++
 src/it/MINVOKER-191/pom.xml                             |  6 +++---
 src/it/MINVOKER-196_junit_report_file/pom.xml           |  4 +++-
 .../src/it/project_2/pom.xml                            |  2 +-
 src/it/invocation-cmdline-exclude/pom.xml               |  1 +
 .../src/it/minvoker-140-executable/pom.xml              |  2 +-
 .../src/it/minvoker-140-ignorable/pom.xml               |  2 +-
 src/it/invocation-debug/pom.xml                         |  1 +
 src/it/invocation-debug/src/it/minvoker-142/pom.xml     |  2 +-
 src/it/invocation-emptyproperty/pom.xml                 |  1 +
 .../src/it/minvoker-118/pom.xml                         |  2 +-
 src/it/invocation-environmentvariable/pom.xml           |  2 ++
 .../src/it/minvoker-145/pom.xml                         |  2 +-
 .../src/it/minvoker-255/pom.xml                         |  2 +-
 .../src/it/minvoker-273/pom.xml                         |  2 +-
 .../src/it/projects/group-1/sub-1/pom.xml               |  2 +-
 .../src/it/projects/group-1/sub-2/pom.xml               |  2 +-
 .../src/it/projects/group-2/sub-1/pom.xml               |  2 +-
 .../src/it/projects/group-2/sub-2/pom.xml               |  2 +-
 src/it/invocation-multiple/pom.xml                      |  7 +++++++
 src/it/invocation-multiple/src/it/project/pom.xml       | 17 +++++++++--------
 src/it/invocation-reactor-indirect/pom.xml              |  6 +++---
 src/it/invocation-spaces/pom.xml                        |  5 +++++
 .../src/it projects/project/spacy pom.xml               | 10 +++++-----
 src/it/local-repo-path/pom.xml                          |  6 ++++--
 src/it/local-repo-url/pom.xml                           |  4 +++-
 src/it/pom-filtering-encoding/pom.xml                   |  4 ++++
 src/it/pom-filtering-encoding/src/it/latin-1/pom.xml    |  2 +-
 src/it/pom-filtering-encoding/src/it/utf-8/pom.xml      |  2 +-
 src/it/pom-filtering/pom.xml                            |  1 +
 src/it/pom-filtering/src/it/project/pom.xml             |  2 +-
 src/it/postbuild-executed-only-once/pom.xml             |  2 ++
 .../postbuild-executed-only-once/src/it/project/pom.xml |  4 ++--
 src/it/settings-inherit/pom.xml                         |  1 +
 src/it/settings-inherit/src/it/project/pom.xml          |  2 +-
 src/it/settings-merge/pom.xml                           |  1 +
 src/it/settings-merge/src/it/project/pom.xml            |  2 +-
 src/it/settings-merge_jdk9+/pom.xml                     |  2 ++
 src/it/settings-merge_jdk9+/src/it/project/pom.xml      |  4 ++--
 src/it/settings-override/pom.xml                        |  1 +
 src/it/settings-override/src/it/project/pom.xml         |  2 +-
 src/it/spaces-should-work_non-windows/pom.xml           |  1 +
 .../src/it/minvoker-test/pom.xml                        |  2 +-
 .../src/it/minvoker-test/pom.xml                        |  2 +-
 src/it/special-characters-should-work/pom.xml           |  1 +
 .../src/it/minvoker-test/pom.xml                        |  2 +-
 src/it/staging-pom/pom.xml                              |  2 +-
 src/it/staging-reactor/mod1-parent/pom.xml              |  2 +-
 src/it/staging-reactor/mod2/pom.xml                     |  2 +-
 src/it/staging-reactor/pom.xml                          |  2 +-
 src/it/updateOnly/pom.xml                               |  2 +-
 51 files changed, 103 insertions(+), 53 deletions(-)

diff --git a/pom.xml b/pom.xml
index 6139892..5cbb994 100644
--- a/pom.xml
+++ b/pom.xml
@@ -357,7 +357,19 @@ under the License.
     <profile>
       <id>run-its</id>
       <properties>
+        <!-- plugins versions used in IT tests -->
+        <antrunPluginVersion>3.1.0</antrunPluginVersion>
+        <cleanPluginVersion>3.2.0</cleanPluginVersion>
+        <compilerPluginVersion>3.10.1</compilerPluginVersion>
+        <enforcerPluginVersion>3.1.0</enforcerPluginVersion>
+        <helpPluginVersion>3.3.0</helpPluginVersion>
+        <installPluginVersion>3.1.0</installPluginVersion>
+        <jarPluginVersion>3.3.0</jarPluginVersion>
+        <pluginPluginVersion>3.7.0</pluginPluginVersion>
+        <resourcesPluginVersion>3.3.0</resourcesPluginVersion>
         <sitePluginVersion>3.7.1</sitePluginVersion>
+        <sourcePluginVersion>3.2.1</sourcePluginVersion>
+        <surefirePluginVersion>3.0.0-M7</surefirePluginVersion>
       </properties>
       <build>
         <pluginManagement>
diff --git a/src/it/MINVOKER-191/pom.xml b/src/it/MINVOKER-191/pom.xml
index 6448c7c..ee01722 100644
--- a/src/it/MINVOKER-191/pom.xml
+++ b/src/it/MINVOKER-191/pom.xml
@@ -49,17 +49,17 @@ under the License.
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
-          <version>2.5.1</version>
+          <version>@compilerPluginVersion@</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-plugin-plugin</artifactId>
-          <version>2.9</version>
+          <version>@pluginPluginVersion@</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-resources-plugin</artifactId>
-          <version>2.6</version>
+          <version>@resourcesPluginVersion@</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
diff --git a/src/it/MINVOKER-196_junit_report_file/pom.xml b/src/it/MINVOKER-196_junit_report_file/pom.xml
index df2b064..cb5ee64 100644
--- a/src/it/MINVOKER-196_junit_report_file/pom.xml
+++ b/src/it/MINVOKER-196_junit_report_file/pom.xml
@@ -41,7 +41,7 @@ under the License.
         <!-- This triggers the download of a known version of this plugin which can then be safely invoked by the IT project -->
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-resources-plugin</artifactId>
-        <version>2.2</version>
+        <version>@resourcesPluginVersion@</version>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -54,6 +54,8 @@ under the License.
           <localRepositoryPath>${project.build.directory}/it-repo</localRepositoryPath>
           <settingsFile>src/it/settings.xml</settingsFile>
           <goals>
+            <!-- Maven 4 require strict checksum by default, so relax here -->
+            <goal>-c</goal>
             <goal>validate</goal>
           </goals>
         </configuration>
diff --git a/src/it/MINVOKER-196_junit_report_file/src/it/project_2/pom.xml b/src/it/MINVOKER-196_junit_report_file/src/it/project_2/pom.xml
index 7234f65..5634342 100644
--- a/src/it/MINVOKER-196_junit_report_file/src/it/project_2/pom.xml
+++ b/src/it/MINVOKER-196_junit_report_file/src/it/project_2/pom.xml
@@ -64,7 +64,7 @@ under the License.
     <plugins>
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
-        <version>2.2</version>
+        <version>@resourcesPluginVersion@</version>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/invocation-cmdline-exclude/pom.xml b/src/it/invocation-cmdline-exclude/pom.xml
index f918b33..1041bdc 100644
--- a/src/it/invocation-cmdline-exclude/pom.xml
+++ b/src/it/invocation-cmdline-exclude/pom.xml
@@ -31,6 +31,7 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/invocation-cmdline-exclude/src/it/minvoker-140-executable/pom.xml b/src/it/invocation-cmdline-exclude/src/it/minvoker-140-executable/pom.xml
index 948f8df..071fd00 100644
--- a/src/it/invocation-cmdline-exclude/src/it/minvoker-140-executable/pom.xml
+++ b/src/it/invocation-cmdline-exclude/src/it/minvoker-140-executable/pom.xml
@@ -35,7 +35,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>3.1.0</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <goals>
diff --git a/src/it/invocation-cmdline-exclude/src/it/minvoker-140-ignorable/pom.xml b/src/it/invocation-cmdline-exclude/src/it/minvoker-140-ignorable/pom.xml
index 8d3de19..72fb0bc 100644
--- a/src/it/invocation-cmdline-exclude/src/it/minvoker-140-ignorable/pom.xml
+++ b/src/it/invocation-cmdline-exclude/src/it/minvoker-140-ignorable/pom.xml
@@ -35,7 +35,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>3.1.0</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <goals>
diff --git a/src/it/invocation-debug/pom.xml b/src/it/invocation-debug/pom.xml
index 6ced906..f3b3704 100644
--- a/src/it/invocation-debug/pom.xml
+++ b/src/it/invocation-debug/pom.xml
@@ -33,6 +33,7 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/invocation-debug/src/it/minvoker-142/pom.xml b/src/it/invocation-debug/src/it/minvoker-142/pom.xml
index 38521aa..2716f59 100644
--- a/src/it/invocation-debug/src/it/minvoker-142/pom.xml
+++ b/src/it/invocation-debug/src/it/minvoker-142/pom.xml
@@ -35,7 +35,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.1.1</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <goals>
diff --git a/src/it/invocation-emptyproperty/pom.xml b/src/it/invocation-emptyproperty/pom.xml
index 23bee19..f22733f 100644
--- a/src/it/invocation-emptyproperty/pom.xml
+++ b/src/it/invocation-emptyproperty/pom.xml
@@ -31,6 +31,7 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/invocation-emptyproperty/src/it/minvoker-118/pom.xml b/src/it/invocation-emptyproperty/src/it/minvoker-118/pom.xml
index 55a8453..f125d61 100644
--- a/src/it/invocation-emptyproperty/src/it/minvoker-118/pom.xml
+++ b/src/it/invocation-emptyproperty/src/it/minvoker-118/pom.xml
@@ -35,7 +35,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.1.1</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <goals>
diff --git a/src/it/invocation-environmentvariable/pom.xml b/src/it/invocation-environmentvariable/pom.xml
index 00cd047..94f697d 100644
--- a/src/it/invocation-environmentvariable/pom.xml
+++ b/src/it/invocation-environmentvariable/pom.xml
@@ -32,6 +32,8 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
+    <helpPluginVersion>@helpPluginVersion@</helpPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/invocation-environmentvariable/src/it/minvoker-145/pom.xml b/src/it/invocation-environmentvariable/src/it/minvoker-145/pom.xml
index 158f99e..dbf5577 100644
--- a/src/it/invocation-environmentvariable/src/it/minvoker-145/pom.xml
+++ b/src/it/invocation-environmentvariable/src/it/minvoker-145/pom.xml
@@ -37,7 +37,7 @@
           <plugin>
             <groupId>org.apache.maven.plugins</groupId>
             <artifactId>maven-enforcer-plugin</artifactId>
-            <version>1.1.1</version>
+            <version>@enforcerPluginVersion@</version>
             <executions>
               <execution>
                 <goals>
diff --git a/src/it/invocation-environmentvariable/src/it/minvoker-255/pom.xml b/src/it/invocation-environmentvariable/src/it/minvoker-255/pom.xml
index b67cef9..f89d646 100644
--- a/src/it/invocation-environmentvariable/src/it/minvoker-255/pom.xml
+++ b/src/it/invocation-environmentvariable/src/it/minvoker-255/pom.xml
@@ -36,7 +36,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>3.0.0-M3</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <goals>
diff --git a/src/it/invocation-environmentvariable/src/it/minvoker-273/pom.xml b/src/it/invocation-environmentvariable/src/it/minvoker-273/pom.xml
index a2ad0ab..d6f15f3 100644
--- a/src/it/invocation-environmentvariable/src/it/minvoker-273/pom.xml
+++ b/src/it/invocation-environmentvariable/src/it/minvoker-273/pom.xml
@@ -36,7 +36,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-help-plugin</artifactId>
-        <version>3.2.0</version>
+        <version>@helpPluginVersion@</version>
         <executions>
           <execution>
             <phase>validate</phase>
diff --git a/src/it/invocation-group-properties/src/it/projects/group-1/sub-1/pom.xml b/src/it/invocation-group-properties/src/it/projects/group-1/sub-1/pom.xml
index a509339..cd69388 100644
--- a/src/it/invocation-group-properties/src/it/projects/group-1/sub-1/pom.xml
+++ b/src/it/invocation-group-properties/src/it/projects/group-1/sub-1/pom.xml
@@ -31,7 +31,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>3.0.0-M2</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <id>enforce</id>
diff --git a/src/it/invocation-group-properties/src/it/projects/group-1/sub-2/pom.xml b/src/it/invocation-group-properties/src/it/projects/group-1/sub-2/pom.xml
index faebe94..c428365 100644
--- a/src/it/invocation-group-properties/src/it/projects/group-1/sub-2/pom.xml
+++ b/src/it/invocation-group-properties/src/it/projects/group-1/sub-2/pom.xml
@@ -31,7 +31,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>3.0.0-M2</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <id>enforce</id>
diff --git a/src/it/invocation-group-properties/src/it/projects/group-2/sub-1/pom.xml b/src/it/invocation-group-properties/src/it/projects/group-2/sub-1/pom.xml
index a509339..cd69388 100644
--- a/src/it/invocation-group-properties/src/it/projects/group-2/sub-1/pom.xml
+++ b/src/it/invocation-group-properties/src/it/projects/group-2/sub-1/pom.xml
@@ -31,7 +31,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>3.0.0-M2</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <id>enforce</id>
diff --git a/src/it/invocation-group-properties/src/it/projects/group-2/sub-2/pom.xml b/src/it/invocation-group-properties/src/it/projects/group-2/sub-2/pom.xml
index 0424a64..555a925 100644
--- a/src/it/invocation-group-properties/src/it/projects/group-2/sub-2/pom.xml
+++ b/src/it/invocation-group-properties/src/it/projects/group-2/sub-2/pom.xml
@@ -31,7 +31,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>3.0.0-M2</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <id>enforce</id>
diff --git a/src/it/invocation-multiple/pom.xml b/src/it/invocation-multiple/pom.xml
index 0ce8813..7a01a72 100644
--- a/src/it/invocation-multiple/pom.xml
+++ b/src/it/invocation-multiple/pom.xml
@@ -31,6 +31,13 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <mavenVersion>@mavenVersion@</mavenVersion>
+    <compilerPluginVersion>@compilerPluginVersion@</compilerPluginVersion>
+    <installPluginVersion>@installPluginVersion@</installPluginVersion>
+    <jarPluginVersion>@jarPluginVersion@</jarPluginVersion>
+    <pluginPluginVersion>@pluginPluginVersion@</pluginPluginVersion>
+    <resourcesPluginVersion>@resourcesPluginVersion@</resourcesPluginVersion>
+    <surefirePluginVersion>@surefirePluginVersion@</surefirePluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/invocation-multiple/src/it/project/pom.xml b/src/it/invocation-multiple/src/it/project/pom.xml
index c313c74..3c43664 100644
--- a/src/it/invocation-multiple/src/it/project/pom.xml
+++ b/src/it/invocation-multiple/src/it/project/pom.xml
@@ -27,7 +27,7 @@ under the License.
   <packaging>maven-plugin</packaging>
   
   <prerequisites>
-    <maven>2.0</maven>
+    <maven>@mavenVersion@</maven>
   </prerequisites>
 
   <properties>
@@ -38,7 +38,8 @@ under the License.
     <dependency>
       <groupId>org.apache.maven</groupId>
       <artifactId>maven-plugin-api</artifactId>
-      <version>2.0</version>
+      <version>@mavenVersion@</version>
+      <scope>provided</scope>
     </dependency>
   </dependencies>
 
@@ -46,7 +47,7 @@ under the License.
     <plugins>
       <plugin>
         <artifactId>maven-compiler-plugin</artifactId>
-        <version>2.0.2</version>
+        <version>@compilerPluginVersion@</version>
         <configuration>
           <source>${maven.compiler.source}</source>
           <target>${maven.compiler.target}</target>
@@ -54,23 +55,23 @@ under the License.
       </plugin>
       <plugin>
         <artifactId>maven-install-plugin</artifactId>
-        <version>2.2</version>
+        <version>@installPluginVersion@</version>
       </plugin>
       <plugin>
         <artifactId>maven-jar-plugin</artifactId>
-        <version>2.2</version>
+        <version>@jarPluginVersion@</version>
       </plugin>
       <plugin>
         <artifactId>maven-plugin-plugin</artifactId>
-        <version>2.4.2</version>
+        <version>@pluginPluginVersion@</version>
       </plugin>
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
-        <version>2.2</version>
+        <version>@resourcesPluginVersion@</version>
       </plugin>
       <plugin>
         <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.4.3</version>
+        <version>@surefirePluginVersion@</version>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/invocation-reactor-indirect/pom.xml b/src/it/invocation-reactor-indirect/pom.xml
index 2c51179..e99c651 100644
--- a/src/it/invocation-reactor-indirect/pom.xml
+++ b/src/it/invocation-reactor-indirect/pom.xml
@@ -48,17 +48,17 @@ under the License.
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
-          <version>2.5.1</version>
+          <version>@compilerPluginVersion@</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-plugin-plugin</artifactId>
-          <version>2.9</version>
+          <version>@pluginPluginVersion@</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-resources-plugin</artifactId>
-          <version>2.6</version>
+          <version>@resourcesPluginVersion@</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
diff --git a/src/it/invocation-spaces/pom.xml b/src/it/invocation-spaces/pom.xml
index 85dd7f1..cbe1b12 100644
--- a/src/it/invocation-spaces/pom.xml
+++ b/src/it/invocation-spaces/pom.xml
@@ -31,6 +31,11 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <compilerPluginVersion>@compilerPluginVersion@</compilerPluginVersion>
+    <installPluginVersion>@installPluginVersion@</installPluginVersion>
+    <jarPluginVersion>@jarPluginVersion@</jarPluginVersion>
+    <resourcesPluginVersion>@resourcesPluginVersion@</resourcesPluginVersion>
+    <surefirePluginVersion>@surefirePluginVersion@</surefirePluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/invocation-spaces/src/it projects/project/spacy pom.xml b/src/it/invocation-spaces/src/it projects/project/spacy pom.xml
index 530d19a..3463817 100644
--- a/src/it/invocation-spaces/src/it projects/project/spacy pom.xml	
+++ b/src/it/invocation-spaces/src/it projects/project/spacy pom.xml	
@@ -41,21 +41,21 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-compiler-plugin</artifactId>
-        <version>2.0.2</version>
+        <version>@compilerPluginVersion@</version>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-install-plugin</artifactId>
-        <version>2.2</version>
+        <version>@installPluginVersion@</version>
       </plugin>
       <plugin>
         <artifactId>maven-jar-plugin</artifactId>
-        <version>2.2</version>
+        <version>@jarPluginVersion@</version>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-resources-plugin</artifactId>
-        <version>2.2</version>
+        <version>@resourcesPluginVersion@</version>
         <configuration>
           <encoding>${project.build.sourceEncoding}</encoding>
         </configuration>
@@ -63,7 +63,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
-        <version>2.4.3</version>
+        <version>@surefirePluginVersion@</version>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/local-repo-path/pom.xml b/src/it/local-repo-path/pom.xml
index b2bab59..3f02286 100644
--- a/src/it/local-repo-path/pom.xml
+++ b/src/it/local-repo-path/pom.xml
@@ -41,7 +41,7 @@ under the License.
         <!-- This triggers the download of a known version of this plugin which can then be safely invoked by the IT project -->
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-clean-plugin</artifactId>
-        <version>2.2</version>
+        <version>@cleanPluginVersion@</version>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -54,7 +54,9 @@ under the License.
           </pomIncludes>
           <settingsFile>src/it/settings.xml</settingsFile>
           <goals>
-            <goal>org.apache.maven.plugins:maven-clean-plugin:2.2:clean</goal>
+            <!-- Maven 4 require strict checksum by default, so relax here -->
+            <goal>-c</goal>
+            <goal>org.apache.maven.plugins:maven-clean-plugin:3.2.0:clean</goal>
           </goals>
         </configuration>
         <executions>
diff --git a/src/it/local-repo-url/pom.xml b/src/it/local-repo-url/pom.xml
index 1e39149..cb3e8a8 100644
--- a/src/it/local-repo-url/pom.xml
+++ b/src/it/local-repo-url/pom.xml
@@ -41,7 +41,7 @@ under the License.
         <!-- This triggers the download of a known version of this plugin which can then be safely invoked by the IT project -->
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-resources-plugin</artifactId>
-        <version>2.2</version>
+        <version>@resourcesPluginVersion@</version>
       </plugin>
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
@@ -51,6 +51,8 @@ under the License.
           <localRepositoryPath>${project.build.directory}/it-repo</localRepositoryPath>
           <settingsFile>src/it/settings.xml</settingsFile>
           <goals>
+            <!-- Maven 4 require strict checksum by default, so relax here -->
+            <goal>-c</goal>
             <goal>validate</goal>
           </goals>
         </configuration>
diff --git a/src/it/pom-filtering-encoding/pom.xml b/src/it/pom-filtering-encoding/pom.xml
index a769935..431c256 100644
--- a/src/it/pom-filtering-encoding/pom.xml
+++ b/src/it/pom-filtering-encoding/pom.xml
@@ -29,6 +29,10 @@ under the License.
 
   <description>Test to check for proper handling of file encoding during POM filtering.</description>
 
+  <properties>
+    <resourcesPluginVersion>@resourcesPluginVersion@</resourcesPluginVersion>
+  </properties>
+
   <build>
     <plugins>
       <plugin>
diff --git a/src/it/pom-filtering-encoding/src/it/latin-1/pom.xml b/src/it/pom-filtering-encoding/src/it/latin-1/pom.xml
index be84a79..65fae35 100644
--- a/src/it/pom-filtering-encoding/src/it/latin-1/pom.xml
+++ b/src/it/pom-filtering-encoding/src/it/latin-1/pom.xml
@@ -47,7 +47,7 @@ under the License.
     <plugins>
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
-        <version>2.2</version>
+        <version>@resourcesPluginVersion@</version>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/pom-filtering-encoding/src/it/utf-8/pom.xml b/src/it/pom-filtering-encoding/src/it/utf-8/pom.xml
index de59fae..8d3d0de 100644
--- a/src/it/pom-filtering-encoding/src/it/utf-8/pom.xml
+++ b/src/it/pom-filtering-encoding/src/it/utf-8/pom.xml
@@ -47,7 +47,7 @@ under the License.
     <plugins>
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
-        <version>2.2</version>
+        <version>@resourcesPluginVersion@</version>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/pom-filtering/pom.xml b/src/it/pom-filtering/pom.xml
index c0d5dc2..8fcb6dd 100644
--- a/src/it/pom-filtering/pom.xml
+++ b/src/it/pom-filtering/pom.xml
@@ -34,6 +34,7 @@ under the License.
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
     <propertyFromPropertiesSection>PROPERTY-FROM-PROPERTIES-SECTION</propertyFromPropertiesSection>
     <itProperty>FAILED</itProperty>
+    <resourcesPluginVersion>@resourcesPluginVersion@</resourcesPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/pom-filtering/src/it/project/pom.xml b/src/it/pom-filtering/src/it/project/pom.xml
index 88e03db..b273ae7 100644
--- a/src/it/pom-filtering/src/it/project/pom.xml
+++ b/src/it/pom-filtering/src/it/project/pom.xml
@@ -64,7 +64,7 @@ under the License.
     <plugins>
       <plugin>
         <artifactId>maven-resources-plugin</artifactId>
-        <version>2.2</version>
+        <version>@resourcesPluginVersion@</version>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/postbuild-executed-only-once/pom.xml b/src/it/postbuild-executed-only-once/pom.xml
index 7372b83..9624cfb 100644
--- a/src/it/postbuild-executed-only-once/pom.xml
+++ b/src/it/postbuild-executed-only-once/pom.xml
@@ -31,6 +31,8 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <compilerPluginVersion>@compilerPluginVersion@</compilerPluginVersion>
+    <surefirePluginVersion>@surefirePluginVersion@</surefirePluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/postbuild-executed-only-once/src/it/project/pom.xml b/src/it/postbuild-executed-only-once/src/it/project/pom.xml
index 01b4e1e..9cc053a 100644
--- a/src/it/postbuild-executed-only-once/src/it/project/pom.xml
+++ b/src/it/postbuild-executed-only-once/src/it/project/pom.xml
@@ -49,12 +49,12 @@ under the License.
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
-          <version>3.7.0</version>
+          <version>@compilerPluginVersion@</version>
         </plugin>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-surefire-plugin</artifactId>
-          <version>2.21.0</version>
+          <version>@surefirePluginVersion@</version>
           <configuration>
             <systemPropertyVariables>
               <create_touch_file>${create_touch_file}</create_touch_file>
diff --git a/src/it/settings-inherit/pom.xml b/src/it/settings-inherit/pom.xml
index d717322..f979416 100644
--- a/src/it/settings-inherit/pom.xml
+++ b/src/it/settings-inherit/pom.xml
@@ -31,6 +31,7 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/settings-inherit/src/it/project/pom.xml b/src/it/settings-inherit/src/it/project/pom.xml
index 4d50191..42a3f4c 100644
--- a/src/it/settings-inherit/src/it/project/pom.xml
+++ b/src/it/settings-inherit/src/it/project/pom.xml
@@ -35,7 +35,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0.1</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <id>enforce-property</id>
diff --git a/src/it/settings-merge/pom.xml b/src/it/settings-merge/pom.xml
index 7c51805..26df7c7 100644
--- a/src/it/settings-merge/pom.xml
+++ b/src/it/settings-merge/pom.xml
@@ -32,6 +32,7 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/settings-merge/src/it/project/pom.xml b/src/it/settings-merge/src/it/project/pom.xml
index d82048e..1058edb 100644
--- a/src/it/settings-merge/src/it/project/pom.xml
+++ b/src/it/settings-merge/src/it/project/pom.xml
@@ -36,7 +36,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0.1</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <id>verify-properties</id>
diff --git a/src/it/settings-merge_jdk9+/pom.xml b/src/it/settings-merge_jdk9+/pom.xml
index 7c51805..72ca04f 100644
--- a/src/it/settings-merge_jdk9+/pom.xml
+++ b/src/it/settings-merge_jdk9+/pom.xml
@@ -32,6 +32,8 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
+    <helpPluginVersion>@helpPluginVersion@</helpPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/settings-merge_jdk9+/src/it/project/pom.xml b/src/it/settings-merge_jdk9+/src/it/project/pom.xml
index 8870189..f2ab455 100644
--- a/src/it/settings-merge_jdk9+/src/it/project/pom.xml
+++ b/src/it/settings-merge_jdk9+/src/it/project/pom.xml
@@ -36,7 +36,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0.1</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <id>verify-properties</id>
@@ -64,7 +64,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-help-plugin</artifactId>
-        <version>2.2</version>
+        <version>@helpPluginVersion@</version>
         <executions>
           <execution>
             <id>effective-settings</id>
diff --git a/src/it/settings-override/pom.xml b/src/it/settings-override/pom.xml
index 79650f8..e5818e6 100644
--- a/src/it/settings-override/pom.xml
+++ b/src/it/settings-override/pom.xml
@@ -32,6 +32,7 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/settings-override/src/it/project/pom.xml b/src/it/settings-override/src/it/project/pom.xml
index cb22679..505aaea 100644
--- a/src/it/settings-override/src/it/project/pom.xml
+++ b/src/it/settings-override/src/it/project/pom.xml
@@ -37,7 +37,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.0.1</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <id>verify-properties</id>
diff --git a/src/it/spaces-should-work_non-windows/pom.xml b/src/it/spaces-should-work_non-windows/pom.xml
index 75a31c3..af9fbf0 100644
--- a/src/it/spaces-should-work_non-windows/pom.xml
+++ b/src/it/spaces-should-work_non-windows/pom.xml
@@ -34,6 +34,7 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/spaces-should-work_non-windows/src/it/minvoker-test/pom.xml b/src/it/spaces-should-work_non-windows/src/it/minvoker-test/pom.xml
index 38521aa..2716f59 100644
--- a/src/it/spaces-should-work_non-windows/src/it/minvoker-test/pom.xml
+++ b/src/it/spaces-should-work_non-windows/src/it/minvoker-test/pom.xml
@@ -35,7 +35,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.1.1</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <goals>
diff --git a/src/it/spaces-should-work_windows/src/it/minvoker-test/pom.xml b/src/it/spaces-should-work_windows/src/it/minvoker-test/pom.xml
index 38521aa..2716f59 100644
--- a/src/it/spaces-should-work_windows/src/it/minvoker-test/pom.xml
+++ b/src/it/spaces-should-work_windows/src/it/minvoker-test/pom.xml
@@ -35,7 +35,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.1.1</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <goals>
diff --git a/src/it/special-characters-should-work/pom.xml b/src/it/special-characters-should-work/pom.xml
index 9b498a3..6f61208 100644
--- a/src/it/special-characters-should-work/pom.xml
+++ b/src/it/special-characters-should-work/pom.xml
@@ -33,6 +33,7 @@ under the License.
 
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <enforcerPluginVersion>@enforcerPluginVersion@</enforcerPluginVersion>
   </properties>
 
   <build>
diff --git a/src/it/special-characters-should-work/src/it/minvoker-test/pom.xml b/src/it/special-characters-should-work/src/it/minvoker-test/pom.xml
index 38521aa..2716f59 100644
--- a/src/it/special-characters-should-work/src/it/minvoker-test/pom.xml
+++ b/src/it/special-characters-should-work/src/it/minvoker-test/pom.xml
@@ -35,7 +35,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-enforcer-plugin</artifactId>
-        <version>1.1.1</version>
+        <version>@enforcerPluginVersion@</version>
         <executions>
           <execution>
             <goals>
diff --git a/src/it/staging-pom/pom.xml b/src/it/staging-pom/pom.xml
index cf39252..443a3fc 100644
--- a/src/it/staging-pom/pom.xml
+++ b/src/it/staging-pom/pom.xml
@@ -52,7 +52,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
-        <version>2.0-beta-7</version>
+        <version>@sitePluginVersion@</version>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/staging-reactor/mod1-parent/pom.xml b/src/it/staging-reactor/mod1-parent/pom.xml
index 9b026e6..7bfcffa 100644
--- a/src/it/staging-reactor/mod1-parent/pom.xml
+++ b/src/it/staging-reactor/mod1-parent/pom.xml
@@ -40,7 +40,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
-        <version>2.0-beta-7</version>
+        <version>@sitePluginVersion@</version>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/staging-reactor/mod2/pom.xml b/src/it/staging-reactor/mod2/pom.xml
index 0f33056..38208b6 100644
--- a/src/it/staging-reactor/mod2/pom.xml
+++ b/src/it/staging-reactor/mod2/pom.xml
@@ -44,7 +44,7 @@ under the License.
     <plugins>
       <plugin>
         <artifactId>maven-source-plugin</artifactId>
-        <version>2.0.4</version>
+        <version>@sourcePluginVersion@</version>
         <executions>
           <execution>
             <id>attach-resources</id>
diff --git a/src/it/staging-reactor/pom.xml b/src/it/staging-reactor/pom.xml
index 185925a..ae0a279 100644
--- a/src/it/staging-reactor/pom.xml
+++ b/src/it/staging-reactor/pom.xml
@@ -45,7 +45,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
-        <version>2.0-beta-7</version>
+        <version>@sitePluginVersion@</version>
       </plugin>
     </plugins>
   </build>
diff --git a/src/it/updateOnly/pom.xml b/src/it/updateOnly/pom.xml
index e388df9..0b8d1f4 100644
--- a/src/it/updateOnly/pom.xml
+++ b/src/it/updateOnly/pom.xml
@@ -42,7 +42,7 @@ under the License.
       <plugin>
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-antrun-plugin</artifactId>
-        <version>3.0.0</version>
+        <version>@antrunPluginVersion@</version>
         <executions>
           <execution>
             <phase>initialize</phase>