This is an automated email from the ASF dual-hosted git repository.

desruisseaux pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-jar-plugin.git

commit 671bfd086eb83e3b439b7379d415942110b60522
Author: Martin Desruisseaux <[email protected]>
AuthorDate: Sun Oct 12 10:50:47 2025 +0200

    Remove the `useDefaultManifestFile` configuration parameter, which was 
deprecated since Maven 3.0.0.
---
 src/it/MJAR-210/invoker.properties                 | 19 -----------
 src/it/MJAR-210/pom.xml                            | 39 ----------------------
 .../apache/maven/plugins/jar/AbstractJarMojo.java  | 17 ----------
 3 files changed, 75 deletions(-)

diff --git a/src/it/MJAR-210/invoker.properties 
b/src/it/MJAR-210/invoker.properties
deleted file mode 100644
index 7a6d3ae..0000000
--- a/src/it/MJAR-210/invoker.properties
+++ /dev/null
@@ -1,19 +0,0 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
-invoker.goals = clean package
-invoker.buildResult = failure
diff --git a/src/it/MJAR-210/pom.xml b/src/it/MJAR-210/pom.xml
deleted file mode 100644
index 2d4d92c..0000000
--- a/src/it/MJAR-210/pom.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
-  Licensed to the Apache Software Foundation (ASF) under one
-  or more contributor license agreements.  See the NOTICE file
-  distributed with this work for additional information
-  regarding copyright ownership.  The ASF licenses this file
-  to you under the Apache License, Version 2.0 (the
-  "License"); you may not use this file except in compliance
-  with the License.  You may obtain a copy of the License at
-
-  http://www.apache.org/licenses/LICENSE-2.0
-
-  Unless required by applicable law or agreed to in writing,
-  software distributed under the License is distributed on an
-  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-  KIND, either express or implied.  See the License for the
-  specific language governing permissions and limitations
-  under the License.
--->
-<project xmlns="http://maven.apache.org/POM/4.0.0"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/maven-v4_0_0.xsd";>
-  <modelVersion>4.0.0</modelVersion>
-  <groupId>org.apache.maven.plugins</groupId>
-  <artifactId>maven-jar-plugin-test-mjar-210</artifactId>
-  <version>1.0</version>
-  <packaging>jar</packaging>
-  <name>Maven</name>
-  <build>
-    <plugins>
-      <plugin>
-        <groupId>org.apache.maven.plugins</groupId>
-        <artifactId>maven-jar-plugin</artifactId>
-        <version>@project.version@</version>
-        <configuration>
-          <useDefaultManifestFile>true</useDefaultManifestFile>
-        </configuration>
-      </plugin>
-    </plugins>
-  </build>
-</project>
diff --git a/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java 
b/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java
index d1c618c..f5b6676 100644
--- a/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java
+++ b/src/main/java/org/apache/maven/plugins/jar/AbstractJarMojo.java
@@ -109,17 +109,6 @@ public abstract class AbstractJarMojo implements 
org.apache.maven.api.plugin.Moj
     @Parameter
     private MavenArchiveConfiguration archive = new 
MavenArchiveConfiguration();
 
-    /**
-     * Using this property will fail your build cause it has been removed from 
the plugin configuration. See the menu entry
-     * <a href="https://maven.apache.org/plugins/maven-jar-plugin/";>Using Your 
Own Manifest File</a> for the
-     * plugin.
-     *
-     * @deprecated For version 3.0.0 this parameter is only defined here to 
break the build if you use it!
-     */
-    @Parameter(property = "jar.useDefaultManifestFile", defaultValue = "false")
-    @Deprecated
-    private boolean useDefaultManifestFile;
-
     /**
      *
      */
@@ -295,12 +284,6 @@ public abstract class AbstractJarMojo implements 
org.apache.maven.api.plugin.Moj
      */
     @Override
     public void execute() throws MojoException {
-        if (useDefaultManifestFile) {
-            throw new MojoException("You are using 'useDefaultManifestFile' 
which has been removed"
-                    + " from the maven-jar-plugin. "
-                    + "Please see the link >>Using Your Own Manifest File<< on 
the plugin site.");
-        }
-
         if (skipIfEmpty && isEmpty(getClassesDirectory())) {
             getLog().info("Skipping packaging of the " + getType());
         } else {

Reply via email to