Maven shade minimizejar shreds H2 even when configured not to touch H2

73 views
Skip to first unread message

Chris Anilao

unread,
Aug 14, 2014, 11:18:46 AM8/14/14
to h2-da...@googlegroups.com
Has anybody ever used maven shade's minimize jar feature while using H2?

Like the documentation, it is set up the pom.xml file to basically ignore the h2 classes:

   <minimizeJar>true</minimizeJar>
   
<filters>
     
<filter>
         
<artifact>com.h2database:h2</artifact>
         
<includes>
           
<include>**</include>
         
</includes>
     
</filter>

...


But for some reason (this does not happen with the other maven packages) H2 is missing some key class files (like Driver.class and org.h2.engine.Engine.class)

My pom.xml (w/o minimizeJar) here.

Thomas Mueller

unread,
Aug 15, 2014, 5:35:56 AM8/15/14
to H2 Google Group
Hi,

If you want to ignore the H2 classes, I think you need to use "exclude", not "include".

Regards,
Thomas



--
You received this message because you are subscribed to the Google Groups "H2 Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages