Skip to content

Commit

Permalink
[MSHADE-303] Suppress module-info.class warning if the file if filtered
Browse files Browse the repository at this point in the history
  • Loading branch information
danilcha authored and rfscholte committed Oct 31, 2018
1 parent aa22e7a commit 1f7f25d
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions src/main/java/org/apache/maven/plugins/shade/DefaultShader.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,12 @@ private void shadeJars( ShadeRequest shadeRequest, Set<String> resources, List<R
JarEntry entry = j.nextElement();

String name = entry.getName();

if ( entry.isDirectory() || isFiltered( jarFilters, name ) )
{
continue;
}


if ( "META-INF/INDEX.LIST".equals( name ) )
{
Expand All @@ -185,18 +191,15 @@ private void shadeJars( ShadeRequest shadeRequest, Set<String> resources, List<R
continue;
}

if ( !entry.isDirectory() && !isFiltered( jarFilters, name ) )
try
{
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 );
}
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 1f7f25d

Please sign in to comment.