AEM Project creation with Lazybones

We used to create the AEM projects using the old Maven archetype which has many issues and not easy to customize. With the help of ACS commons there is a new way of creating the AEM projects which is easy, includes the default config options and also provides an option to include the ACS commons package as a sub package and many more.

  • The creation process is fairly simple. Just install the lazy bone tool from here. Installation is very easy in unix/linux. 

>gvm install lazybones

  • Type the below command and just answer few Yes/No questions :). This is for choosing different options for creating the project.

>lazybones create aem-multimodule-project <directory name>

  • Once you answer all the questions, your project will be ready for the build.

After the installation a .lazybones folder will be created which will have all the options you’ve selected while creating the project.

More info here : https://github.com/Adobe-Consulting-Services/lazybones-aem-templates

Thanks to Pavan Gaddam (my colleague) for introducing me to lazy bones. 🙂

6 responses to “AEM Project creation with Lazybones”

  1. Ankur Mittal Avatar

    Thanks Rahul for introducing LazyBones. I totally loved it.

  2. Ankur Mittal Avatar

    I am having a strange issue with the build, any idea why it would happen:

    [ERROR] Failed to execute goal on project example-project-content: Could not resolve dependencies for project com.myco:example-project-content:content-package:0.0.1-SNAPSHOT: Failed to collect dependencies at com.adobe.acs:acs-aem-commons-content:zip:1.10.2: Failed to read artifact descriptor for com.adobe.acs:acs-aem-commons-content:zip:1.10.2: Could not transfer artifact com.adobe.acs:acs-aem-commons-content:pom:1.10.2 from/to adobe (http://repo.adobe.com/nexus/content/groups/public/): java.lang.RuntimeException: Could not generate DH keypair: Prime size must be multiple of 64, and can only range from 512 to 1024

    Want to save my time debugging it 😉

    1. rmengji Avatar

      Which maven version you’re using?

      1. Ankur Mittal Avatar
      2. rmengji Avatar

        try using 3.1 or 3.2

  3. Rama Avatar
    Rama

    Hi Rahul,

    I downloaded lazybones-0.8.3.zip, unzipped it on a folder and put bin folder of it in PATH variable.

    Is that the correct installation on Windows?

    Thanks,
    Rama.

Leave a reply to Rama Cancel reply