You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/08/09 21:02:28 UTC
(maven-ejb-plugin) branch agent/drop-plexustestcase-ejb-plugin created (now f6cf2b8)
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a change to branch agent/drop-plexustestcase-ejb-plugin
in repository https://gitbox.apache.org/repos/asf/maven-ejb-plugin.git
at f6cf2b8 Replace PlexusTestCase.getBasedir() with the plexus-testing shim
This branch includes the following new commits:
new f6cf2b8 Replace PlexusTestCase.getBasedir() with the plexus-testing shim
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-ejb-plugin) 01/01: Replace PlexusTestCase.getBasedir() with the plexus-testing shim
Posted by sl...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch agent/drop-plexustestcase-ejb-plugin
in repository https://gitbox.apache.org/repos/asf/maven-ejb-plugin.git
commit f6cf2b8961c261658b68c5de6aba6c396e04a332
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sun Aug 9 22:48:56 2026 +0200
Replace PlexusTestCase.getBasedir() with the plexus-testing shim
MavenProjectBasicStub only used PlexusTestCase for its static
getBasedir() helper. Swap it for PlexusExtension.getBasedir() from
org.codehaus.plexus:plexus-testing, which the pom already pulls in on
the test classpath.
EjbMojoTest itself still extends AbstractMojoTestCase, which extends
PlexusTestCase transitively via maven-plugin-testing-harness; that
dependency is out of this plugin's control.
Generated-by: Claude Opus 5 (1M context)
---
.../java/org/apache/maven/plugins/ejb/stub/MavenProjectBasicStub.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/test/java/org/apache/maven/plugins/ejb/stub/MavenProjectBasicStub.java b/src/test/java/org/apache/maven/plugins/ejb/stub/MavenProjectBasicStub.java
index f5f30ba..10b54f1 100644
--- a/src/test/java/org/apache/maven/plugins/ejb/stub/MavenProjectBasicStub.java
+++ b/src/test/java/org/apache/maven/plugins/ejb/stub/MavenProjectBasicStub.java
@@ -28,7 +28,7 @@ import org.apache.maven.artifact.repository.ArtifactRepository;
import org.apache.maven.model.Model;
import org.apache.maven.model.Profile;
import org.apache.maven.project.MavenProject;
-import org.codehaus.plexus.PlexusTestCase;
+import org.codehaus.plexus.testing.PlexusExtension;
import org.codehaus.plexus.util.FileUtils;
/**
@@ -60,7 +60,7 @@ public class MavenProjectBasicStub extends MavenProject {
artifact = new DefaultArtifact(getGroupId(), getArtifactId(), getVersion(), "compile", "jar", "", null);
// set isolated root directory
- testRootDir = PlexusTestCase.getBasedir() + "/target/test-classes/unit/test-dir/" + identifier;
+ testRootDir = PlexusExtension.getBasedir() + "/target/test-classes/unit/test-dir/" + identifier;
if (!new File(testRootDir).exists()) {
FileUtils.mkdir(testRootDir);