I doubt there is very much you can remove. The Maven installation just includes the basic features to perform the core features of a build, then additional plugins are downloaded as needed to do specific tasks during the build steps. I think that you could reduce the size by removing the color logging support (jansi).
Please keep in mind that Maven will (typically) download A LOT of artifacts during the build. So the 9MB of Maven core is not your main concern if you want to keep the total size down. /Anders On Fri, Nov 10, 2017 at 6:30 AM, Kasun Siyambalapitiya <kasu...@wso2.com> wrote: > Hi all, > > I am currently working on a project which packs `maven` distribution in > itself, so that the programme is capable of performing a `maven` build if > the running system is having `Java` pre installed. Since the `maven` > distribution (apache-maven-3.5.2-bin.zip) size is around 9MB the total > resultant output of the program becomes bulky. Is there any way to reduce > the size of the `maven` distribution by keeping only the libs which > required for performing the maven build. > > Thanks > > -- > *Regards,* > > *Kasun Siyambalapitiya* > *Software Engineer* > WSO2 Inc. - http://wso2.com/ > lean . enterprise . middleware > Tel : 0715523466 > E mail : kasu...@wso2.com > Blog: https://medium.com/@kasunsiyambalapitiya > <https://wso2.com/signature> >