Exclude files from dependencies in Maven WAR

40 Views Asked by At

I am generating a WAR file which is using tess4j. Tess4j contains the following structure:

- net.sourceforge.tess4j
- META-INF/
- win32-x86/winlibraries

My war project is used in Linux, so I don't need winlibraries inside the tess4j dependency. I want to package my WAR using a version of tess4j without winlibraries, because it take up a lot of size. Is it possible to do using only Maven? Any plugin?

0

There are 0 best solutions below