From time to time, there is a requirement for bulk data changes due to component template or dialog changes.
This repository is created to persist the groovy script for learning and reuse and provide some source control over it.
1. Always back up the data before processing them, especially in prod. Get Adobe Managed Service to take a vm snapshot backup if crx package is too applicable.
2. Run holistic check wherever you can before and after changes to validate the results, e.g. check the total number of resourced affected, check the total number of resources with certain properties.
3. Generate log files so the scripts can be more verbose for debugging and auditing.
How to run groovy on AEM
AEM Groovy Console provides an interface for running Groovy scripts on AEM.
1. Download the console package.
- Verify the installation.
How to deploy
To build all the modules run in the project root directory the following command with Maven 3:
mvn clean install
If you have a running AEM instance you can build and package the whole project and deploy into AEM with
mvn clean install -PautoInstallPackage
Or to deploy it to a publish instance, run
mvn clean install -PautoInstallPackagePublish