One suggest: add -Dmaven.javadoc.skip=true This parameter skips building javadocs. For me this reduces overall build time to about 2 minutes.
> On Sep 30, 2016, at 5:40 AM, Mohammed Q. Hussian <[email protected]> wrote: > > Hi All. > > I'm building Hadoop from source using the following Maven command: > mvn --offline package -Pdist -DskipTests" > > Everything works fine but the problem is that the building process takes > time. I'm planing to modify Hadoop's source code and waiting about seven > minutes to compile the changes is not suitable. > > Is there anyway to speed the process up? > > I tried some solutions that presented on the following two links and nothing > seems to work: > > https://zeroturnaround.com/rebellabs/your-maven-build-is-slow-speed-it-up/ > <https://zeroturnaround.com/rebellabs/your-maven-build-is-slow-speed-it-up/> > > http://blog.dblazejewski.com/2015/08/how-to-make-your-maven-build-fast-again/ > <http://blog.dblazejewski.com/2015/08/how-to-make-your-maven-build-fast-again/> > > Regards.
