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-shade-plugin.git


The following commit(s) were added to refs/heads/master by this push:
     new 300630f  Explain the manifest overlap warning and where the 
dependency-reduced POM goes
300630f is described below

commit 300630f0f12aced53f6ebf34b6ce87c12d3eb65d
Author: Sylwester Lachiewicz <[email protected]>
AuthorDate: Mon Nov 2 13:20:58 2026 +0000

    Explain the manifest overlap warning and where the dependency-reduced POM 
goes
---
 src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java | 5 ++---
 src/site/markdown/examples/executable-jar.md.vm                  | 3 ++-
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java 
b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
index 3d07408..f29b310 100644
--- a/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
+++ b/src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
@@ -255,9 +255,8 @@ public class ShadeMojo extends AbstractMojo {
     /**
      * Flag whether to generate a simplified POM for the shaded artifact. If 
set to <code>true</code>, dependencies that
      * have been included into the uber JAR will be removed from the 
<code>&lt;dependencies&gt;</code> section of the
-     * generated POM. The reduced POM will be named 
<code>dependency-reduced-pom.xml</code> and is stored into the same
-     * directory as the shaded artifact. Unless you also specify 
dependencyReducedPomLocation, the plugin will create a
-     * temporary file named <code>dependency-reduced-pom.xml</code> in the 
project basedir.
+     * generated POM. The reduced POM is written to 
<code>dependencyReducedPomLocation</code>, by default
+     * <code>dependency-reduced-pom.xml</code> in the project basedir, and 
stays there after the build.
      */
     @Parameter(defaultValue = "true")
     private boolean createDependencyReducedPom;
diff --git a/src/site/markdown/examples/executable-jar.md.vm 
b/src/site/markdown/examples/executable-jar.md.vm
index 5ca3539..93f423e 100644
--- a/src/site/markdown/examples/executable-jar.md.vm
+++ b/src/site/markdown/examples/executable-jar.md.vm
@@ -59,7 +59,8 @@ To create an executable uber JAR, one simply needs to set the 
main class that se
 </project>
 ```
 
-This snippet configures a special resource transformer which sets the 
`Main-Class` entry in the `MANIFEST.MF` of the shaded JAR. Other entries can be 
added to the `MANIFEST.MF` as well via key-value pairs in the 
`<manifestEntries>` section:
+This snippet configures a special resource transformer which sets the 
`Main-Class` entry in the `MANIFEST.MF` of the shaded JAR.
+Since the project's JAR and most of its dependencies each bring their own 
`META-INF/MANIFEST.MF`, the build warns that this resource overlaps; the 
transformer writes the manifest of the shaded JAR, so the warning is harmless. 
Other entries can be added to the `MANIFEST.MF` as well via key-value pairs in 
the `<manifestEntries>` section:
 
 ```xml
 <project>

Reply via email to