We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 742e0c0 commit a33ed8dCopy full SHA for a33ed8d
maven-plugin-testing-harness/src/main/java/org/apache/maven/api/plugin/testing/MojoExtension.java
@@ -135,9 +135,8 @@ public void beforeEach(ExtensionContext context) throws Exception {
135
.map(Basedir::value)
136
.orElse(getBasedir());
137
field.set(null, basedir);
138
- field = PlexusExtension.class.getDeclaredField("context");
139
- field.setAccessible(true);
140
- field.set(this, context);
+
+ setContext(context);
141
142
getContainer().addComponent(getContainer(), PlexusContainer.class.getName());
143
0 commit comments