Question about correct package deployment
I have started a new project with AEM 6.5.18 on-premise solution, created with Maven archetype 41.
Deployed is always the .all package which contains the ui.apps, ui.config and ui.content packages.
The ui.content module includes source content and configurations under /content and /conf that are rolled out with each deployment.
These nodes are set to mode="merge" in the associated filter.xml so that no editorially created content is overwritten on the instances.
Works so far.
In an old project based on CQ 5.6 there was only one package that was deployed, and it contained only /apps and /etc nodes.
Unfortunately the jar files contained in it were not always replaced correctly in the AEM or the updated JARs were used.
That's why it was decided to work only with the package version 1.0.0-SNAPSHOT and to uninstall the old one
and reboot the instance before reinstalling the package. This worked very well for a long time.
However, since we now have a ui.content package in the new project that also writes to /content,
if we uninstall the package, it will also restore the edited content below /content at the time of installation using the package manager snapshot.
I've read a lot of documentation from Adobe on this topic, but I'm still not sure if I've got the best deployment procedure right now:
1. the package is versioned/incremented correctly for each deployment according to Maven standard.
2. the previously installed packages do not need to be uninstalled because the package with the higher version number is automatically used.
Are these statements correct?
Have I forgotten anything?
I would also like to know if it makes sense to reboot the AEM instance after a package deployment.
Thanks in advance
Thorsten

