maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Schrenk <>
Subject maven-shade-plugin, minifyJar removes classes used in Class.forName(...)
Date Tue, 13 Dec 2011 12:04:59 GMT

I'm using the maven-shade-plugin to create an executable jar. The number of included jars
blows the final jar over 10+ MB. Using the `minifyJar` instruction, reduces it to 2.8 MB.

Unfortunately it will remove the classes for the database driver. I assume its because they
are included via


and aren't found during the minifying process. 

I tried including it via

                 <include></include >
               </includes >

but this removes all other classes.

How can I minify the shaded jar and still include the database driver?

Best regards
Oliver Schrenk
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message