Skip to content

Commit

Permalink
[MSHADE-278] - Print out the jar responsible for exceptions
Browse files Browse the repository at this point in the history
 o like "Error creating shaded jar: invalid LOC header (bad signature)"
   improvement by Gary Gregory
  • Loading branch information
khmarbaise committed Apr 2, 2018
1 parent b944a34 commit 61a8182
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/main/java/org/apache/maven/plugins/shade/DefaultShader.java
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,16 @@ private void shadeJars( ShadeRequest shadeRequest, Set<String> resources, List<R

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 );
}
}
}

Expand Down

0 comments on commit 61a8182

Please sign in to comment.