從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