From 5f77822f0105bad282b2038fd1d42a48ab2be336 Mon Sep 17 00:00:00 2001 From: Sylwester Lachiewicz Date: Sat, 24 Oct 2026 13:14:35 +0200 Subject: [PATCH] Test with maven-testing and drop the explicit Guice dependency maven-testing brings the Guice and maven-xml that Maven core ships; the retired plugin-testing harness did not, which is why Guice was declared and maven-xml pinned here. --- pom.xml | 27 +++---------------- .../plugins/deploy/DeployFileMojoTest.java | 2 +- 2 files changed, 4 insertions(+), 25 deletions(-) diff --git a/pom.xml b/pom.xml index a29d2f4f..8c4f985c 100644 --- a/pom.xml +++ b/pom.xml @@ -71,8 +71,6 @@ under the License. 17 4.0.0-rc-7 - 7.0.0 - 4.0.0-beta-4 2.0.24 5.24.0 2.0.20 @@ -95,19 +93,6 @@ under the License. guava 33.7.2-jre - - - org.apache.maven - maven-xml - ${mavenVersion} - @@ -139,9 +124,9 @@ under the License. - org.apache.maven.plugin-testing - maven-plugin-testing-harness - ${mavenPluginTestingVersion} + org.apache.maven + maven-testing + ${mavenVersion} test @@ -162,12 +147,6 @@ under the License. ${mavenVersion} test - - com.google.inject - guice - ${guiceVersion} - test - org.mockito mockito-junit-jupiter diff --git a/src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java b/src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java index 13f6c105..88c05621 100644 --- a/src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java +++ b/src/test/java/org/apache/maven/plugins/deploy/DeployFileMojoTest.java @@ -37,12 +37,12 @@ import org.apache.maven.api.plugin.testing.InjectMojo; import org.apache.maven.api.plugin.testing.MojoParameter; import org.apache.maven.api.plugin.testing.MojoTest; -import org.apache.maven.api.plugin.testing.stubs.ArtifactStub; import org.apache.maven.api.plugin.testing.stubs.SessionMock; import org.apache.maven.api.services.ArtifactDeployer; import org.apache.maven.api.services.ArtifactDeployerRequest; import org.apache.maven.api.services.ArtifactManager; import org.apache.maven.impl.InternalSession; +import org.apache.maven.testing.plugin.stubs.ArtifactStub; import org.junit.jupiter.api.Test; import static org.apache.maven.api.plugin.testing.MojoExtension.getBasedir;