Relative Content

Tag Archive for javamavenexecutable-jarmonorepo

Exclude unnecessary classes from executable JARs compiled from monorepo with Maven

I have a monorepo that has multiple executable classes and their shared dependencies. I can create JARs with dependencies so that they can easily be deployed and executed. However, all of the compiled JARs seem to include all of the classes from the repo, even classes that are not required (neither directly nor indirectly) by a specific main class.