diff --git a/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractHpiMojo.java b/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractHpiMojo.java index 187b2cb4ce..f51e631aef 100644 --- a/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractHpiMojo.java +++ b/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractHpiMojo.java @@ -203,20 +203,6 @@ public abstract class AbstractHpiMojo extends AbstractJenkinsMojo { @Parameter protected String maskClasses; - /** - * Like the {@code maskClasses} parameter, but it applies at the boundary between core and - * all the plugins. - * - *
- * This mechanism is intended for those plugins that bring JavaEE APIs (such as the database plugin, - * which brings in the JPA API.) Other plugins that depend on the database plugin can still see - * the JPA API through the container classloader, so to make them all resolve to the JPA API in the - * database plugin, the database plugin needs to rely on this mechanism. - * @since 1.92 - */ - @Parameter - protected String globalMaskClasses; - /** * Change the classloader preference such that classes locally bundled in this plugin * will take precedence over those that are defined by the dependency plugins. diff --git a/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractJenkinsManifestMojo.java b/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractJenkinsManifestMojo.java index 308c765a1e..d7a63c3469 100644 --- a/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractJenkinsManifestMojo.java +++ b/src/main/java/org/jenkinsci/maven/plugins/hpi/AbstractJenkinsManifestMojo.java @@ -204,10 +204,6 @@ protected void setAttributes(Manifest.ExistingSection mainSection) mainSection.addAttributeAndCheck(new Manifest.Attribute("Mask-Classes", maskClasses)); } - if (globalMaskClasses != null) { - mainSection.addAttributeAndCheck(new Manifest.Attribute("Global-Mask-Classes", globalMaskClasses)); - } - if (pluginFirstClassLoader) { mainSection.addAttributeAndCheck(new Manifest.Attribute("PluginFirstClassLoader", "true")); }