After looking into code-base and testing out random things, here's how I was able to replicate the same to my AEM instance:
1. Step 1: As suggested by @Ganthimathi_R, create a raw project using the following command:
mvn -B archetype:generate \
-D archetypeGroupId=com.adobe.granite.archetypes \
...