Expand my Community achievements bar.

Speed up the AEM Build Time | AEM Community Blog Seeding

Avatar

Administrator

BlogImage.jpg

Speed up the AEM Build Time by Matija Kovaček

Abstract

How to Speed up the AEM Build Time
Recently I found out tool to speed up build time of your Maven based projects.

Maven Daemon is let's say maven wrapper tool which provides faster build time.

Some facts about Maven Daemon:
1. build executes in long living background process
2. native executable
3. use multiple CPU cores to build modules in parallel

Maven Daemon Installation
Use sdk or brew to install Maven Daemon

$ sdk install mvnd

$ brew install mvndaemon/homebrew-mvnd/mvnd
You can verify installation with

➜ ~ mvnd --version
mvnd native client 0.2.0-darwin-amd64 (0cd0b3f04692b7970fda06c206c1fbaac68fe9ce)
Terminal: org.jline.terminal.impl.PosixSysTerminal with pty org.jline.terminal.impl.jansi.osx.OsXNativePty
Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /usr/local/Cellar/mvnd/HEAD-1c610c3/libexec/mvn
Java version: 15.0.1, vendor: N/A, runtime: /usr/local/Cellar/openjdk/15.0.1/libexec/openjdk.jdk/Contents/Home
Default locale: en_GB, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"
Maven vs Maven Daemon build time comparison
For testing purposes I will compare build times for AEM project. Project was build 2x times before measurement.

This measurement is not perfect, since a lot of factors can affect final build time (+- few seconds), but is fair enough to see a difference.

Read Full Blog

Speed up the AEM Build Time

Q&A

Please use this thread to ask the related questions.



Kautuk Sahni
Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Reply

Avatar

Level 2

It dependes (in my project) under WSL 2 in a windows machine takes 9:34 mins using mvnd and using mvn 1:35 mins