Removing samples from an AEM Maven project
Last update: March 23, 2025
- Applies to:
- Experience Manager as a Cloud Service
- Topics:
- AEM Project Archetype
CREATED FOR:
- Beginner
- Developer
Learn how to clean-up and remove generated sample code from an AEM Project generated by the AEM Project Archetype.
Resources
Commands
The following commands can be executed to remove the generated sample files from the AEM Maven Project:
rm -rf core/src/main/java/com/adobe/aem/wknd/examples/core/filters \
rm -rf core/src/main/java/com/adobe/aem/wknd/examples/core/listeners \
rm -rf core/src/main/java/com/adobe/aem/wknd/examples/core/models \
rm -rf core/src/main/java/com/adobe/aem/wknd/examples/core/schedulers \
rm -rf core/src/main/java/com/adobe/aem/wknd/examples/core/servlets \
rm -rf core/src/test/java/com/adobe/aem/wknd/examples/core/* \
rm -rf ui.apps/src/main/content/jcr_root/apps/wknd-examples/components/helloworld \
rm -rf ui.frontend/src/main/webpack/components/_helloworld.js \
rm -rf ui.frontend/src/main/webpack/components/_helloworld.css
Edits
Remove the <div class="helloworld" ...></div>
from:
ui.frontend/src/main/webpack/static/index.html
Remove the <helloworld>
component instance definition from:
ui.content/src/main/content/jcr_root/content/wknd-examples/us/en/.content.xml
recommendation-more-help
4859a77c-7971-4ac9-8f5c-4260823c6f69