You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by kh...@apache.org on 2018/04/02 16:24:05 UTC

[maven-shade-plugin] branch MSHADE-278 created (now 0e29bba)

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

khmarbaise pushed a change to branch MSHADE-278
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git.


      at 0e29bba  [MSHADE-278] - Print out the jar responsible for exceptions  o like "Error creating shaded jar: invalid LOC header (bad signature)"

This branch includes the following new commits:

     new 0e29bba  [MSHADE-278] - Print out the jar responsible for exceptions  o like "Error creating shaded jar: invalid LOC header (bad signature)"

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


-- 
To stop receiving notification emails like this one, please contact
khmarbaise@apache.org.

[maven-shade-plugin] 01/01: [MSHADE-278] - Print out the jar responsible for exceptions o like "Error creating shaded jar: invalid LOC header (bad signature)"

Posted by kh...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

khmarbaise pushed a commit to branch MSHADE-278
in repository https://gitbox.apache.org/repos/asf/maven-shade-plugin.git

commit 0e29bba1127b92239fa999918f382aec45abfa3a
Author: Karl Heinz Marbaise <kh...@apache.org>
AuthorDate: Mon Apr 2 18:23:39 2018 +0200

    [MSHADE-278] - Print out the jar responsible for exceptions
     o like "Error creating shaded jar: invalid LOC header (bad signature)"
---
 .../java/org/apache/maven/plugins/shade/DefaultShader.java   | 12 ++++++++++--
 1 file changed, 10 insertions(+), 2 deletions(-)

diff --git a/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java b/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java
index ec1fb96..ee633f8 100644
--- a/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java
+++ b/src/main/java/org/apache/maven/plugins/shade/DefaultShader.java
@@ -187,8 +187,16 @@ public class DefaultShader
 
                     if ( !entry.isDirectory() && !isFiltered( jarFilters, name ) )
                     {
-                        shadeSingleJar( shadeRequest, resources, transformers, remapper, jos, duplicates, jar, jarFile,
-                                        entry, name );
+                        try
+                        {
+                            shadeSingleJar( shadeRequest, resources, transformers, remapper, jos, duplicates, jar,
+                                            jarFile, entry, name );
+                        }
+                        catch ( Exception e )
+                        {
+                            throw new IOException( String.format( "Problem shading JAR %s entry %s: %s", jar, name, e ),
+                                                   e );
+                        }
                     }
                 }
 

-- 
To stop receiving notification emails like this one, please contact
khmarbaise@apache.org.