sonatype/nexus — comment on commit d93335ed08acab7762e6b8ffcc80c347aa87f830
File: nexus/nexus-configuration/pom.xml line 127
By adreghiciu:

There are a number of benefits, out of which one stands out: by including everything you include all sort of classes like for example @Component / @Named classes that are then scanned by sisu and included in the components used to inject. This is a really not wanted behavior as those components are relevant to module in cause not to the module that depends on it. This will really give an unexpected behavior in dependent modules.

Beside this which is a show stopper for me, the size of jar is greatly reduced. Imagine that we included in those jars all test resources and all tests.

To avoid the maintenance I was thinking to have a de-facto standard that all classes that are in an "export" package or sub-package will be included.