Thursday, April 9, 2015

Adding Packages into the AEM Jar-file


let’s cover how to auto­mat­i­cally install your own pack­ages when you install AEM6 for the first time. This is a handy way to avoid large man­u­als (that we don’t read any­way :) ), and espe­cially for mak­ing sure the devel­op­ment team is in sync with content-packages and frame­work releases
Pre-req
What you need to have is the orig­i­nal aem6 jar-file, and the pack­ages that you want to install.
In this exam­ple I want to install the SP1-package, and pre-package that into the aem6 jar-file.
I have this file-structure
/aem6_builder
  - aem6.0.jar
    /static/install
    - aem_60_sp1.jar
Now exe­cute the fol­low­ing com­mand in /aem6_builder:
jar uvf aem-6.0.jar static/install/aem_60_sp1.zip 
You get an out­put like this, mean­ing that the sp1-file is now merged into the aem6 jar-file:
adding: static/install/aem_60_sp1.zip(in = 233453836) (out= 233522386)(deflated 0%)
At this point you sim­ple hand-out this file to the devel­op­ment team to be sure they all have SP1 installed.
If you want you want extend this, to also install other pack­ages with con­tent or apps.
Happy installing!

No comments: