From 505c3cfadb0cf43759af14320c1bbddee48f885e Mon Sep 17 00:00:00 2001 From: Slawomir Jaranowski Date: Mon, 5 Jan 2026 13:32:59 +0100 Subject: [PATCH] Remove maven-compat from dependencies Not needed with Maven 3.9.12 --- maven-plugin-testing-harness/pom.xml | 17 ----------------- .../src/site/markdown/index.md | 7 +++---- 2 files changed, 3 insertions(+), 21 deletions(-) diff --git a/maven-plugin-testing-harness/pom.xml b/maven-plugin-testing-harness/pom.xml index 49420cd..31faec2 100644 --- a/maven-plugin-testing-harness/pom.xml +++ b/maven-plugin-testing-harness/pom.xml @@ -87,23 +87,6 @@ under the License. ${wagonVersion} provided - - - org.apache.maven - maven-compat - ${mavenVersion} - runtime - true - - - * - * - - - org.codehaus.plexus diff --git a/maven-plugin-testing-harness/src/site/markdown/index.md b/maven-plugin-testing-harness/src/site/markdown/index.md index 20f314b..9de97c5 100644 --- a/maven-plugin-testing-harness/src/site/markdown/index.md +++ b/maven-plugin-testing-harness/src/site/markdown/index.md @@ -21,9 +21,9 @@ date: February 2008 ## Maven Plugin Testing Harness - The Maven Plugin Testing Harness provides mechanisms to manage tests on Mojos, i.e. by pre-constructing the [Plexus](http://plexus.codehaus.org) components, providing stub objects for Maven functionality such as projects, and populating fields from an XML file that resembles the plugin configuration in the POM. +The Maven Plugin Testing Harness provides mechanisms to manage tests on Mojos, i.e. by pre-constructing the [Plexus](http://plexus.codehaus.org) components, providing stub objects for Maven functionality such as projects, and populating fields from an XML file that resembles the plugin configuration in the POM. - The best way to start is to read the cookbook [How to use Maven Plugin Testing Harness](./getting-started/index.html). +The best way to start is to read the cookbook [How to use Maven Plugin Testing Harness](./getting-started/index.html). ### Migration to 3.4.0 @@ -42,13 +42,12 @@ Therefore, some project dependencies have been set as optional to avoid conflict Your project should depend on the following artifacts, if needed: - `org.codehaus.plexus:plexus-archiver` - used by `ArtifactStubFactory` -- `org.apache.maven:maven-compat` - used by `MojoRule` +- `org.apache.maven:maven-compat` - used by `MojoRule` (not needed with Maven 3.9.12+) - `org.junit.jupiter:junit-jupiter-api` - used for JUnit 5 tests - `junit:junit` - used for JUnit 3/4 tests ### Examples - The following examples shows how to use the Testing Harness in more advanced use cases: