从AEM Maven项目中删除示例

了解如何从AEM项目原型生成的AEM项目中清理和删除生成的示例代码。

资源

命令

可以执行以下命令以从AEM Maven项目中删除生成的示例文件:

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

编辑

从:<div class="helloworld" ...></div>删除

ui.frontend/src/main/webpack/static/index.html

从以下位置删除<helloworld>组件实例定义:

ui.content/src/main/content/jcr_root/content/wknd-examples/us/en/.content.xml
recommendation-more-help
4859a77c-7971-4ac9-8f5c-4260823c6f69