On limited information, this sounds like a work around on a root problem of runaway dependencies.
Maybe something like proguard could reduce deployable jar size to only the classes used.
I assume these are daily dev deploys and not production deploys.