This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven.git
The following commit(s) were added to refs/heads/master by this push:
new 1aea38cc7a Implement Plugin.getRealm() in the lifecycle filter adapter
1aea38cc7a is described below
commit 1aea38cc7a1afaf1ce378db3f080250601681d0a
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Fri Nov 6 18:12:41 2026 +0000
Implement Plugin.getRealm() in the lifecycle filter adapter
---
.../apache/maven/lifecycle/internal/filter/MojoExecutionFilter.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git
a/impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/filter/MojoExecutionFilter.java
b/impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/filter/MojoExecutionFilter.java
index f9d48cc008..d3d377d53a 100644
---
a/impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/filter/MojoExecutionFilter.java
+++
b/impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/filter/MojoExecutionFilter.java
@@ -28,6 +28,7 @@
import org.apache.maven.api.Dependency;
import org.apache.maven.api.MojoExecution;
import org.apache.maven.api.Plugin;
+import org.apache.maven.api.Realm;
import org.apache.maven.api.annotations.Nullable;
import org.apache.maven.api.model.PluginExecution;
import org.apache.maven.api.plugin.descriptor.PluginDescriptor;
@@ -157,6 +158,11 @@ public List<Lifecycle> getLifecycles() {
return Collections.emptyList();
}
+ @Override
+ public Realm getRealm() {
+ throw new UnsupportedOperationException("getRealm() is not
available in the filter adapter");
+ }
+
@Override
public ClassLoader getClassLoader() {
throw new UnsupportedOperationException("getClassLoader() is
not available in the filter adapter");