### Maven Build Output Example Source: https://github.com/adobedocs/commerce-cif-documentation/blob/master/getting-started/02-new-cif-project.md This is an example of the output generated after running the Maven build command. It shows the status of each sub-module build, indicating success or failure, and the total build time. ```text ... Package installed in 6388ms. [INFO] ------------------------------------------------------------------------ [INFO] Reactor Summary: [INFO] [INFO] acme-store ......................................... SUCCESS [ 0.306 s] [INFO] Acme Store - Core .................................. SUCCESS [ 7.399 s] [INFO] Acme Store - UI apps ............................... SUCCESS [ 3.211 s] [INFO] Acme Store - UI content ............................ SUCCESS [ 1.069 s] [INFO] Acme Store - Sample Content ........................ SUCCESS [ 2.257 s] [INFO] Acme Store - All-in-one package .................... SUCCESS [ 8.572 s] [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 24.882 s [INFO] Finished at: 201X-XX-XX [INFO] Final Memory: 46M/167M [INFO] ------------------------------------------------------------------------ ``` -------------------------------- ### Verify Maven Installation Source: https://github.com/adobedocs/commerce-cif-documentation/blob/master/getting-started/02-new-cif-project.md Checks if Apache Maven is installed and accessible from the command line. Displays the Maven version, home directory, and Java version used. ```shell mvn -version Apache Maven 3.3.9 Maven home: /Library/apache-maven-3.3.9 Java version: 11.0.2, vendor: Oracle Corporation Java home: /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home ``` -------------------------------- ### Build and Deploy Venia Project with Maven Source: https://github.com/adobedocs/commerce-cif-documentation/blob/master/tutorials/04-style-cif-component.md Builds and deploys the Venia project to a local AEM instance using Maven. This command compiles the project and installs the necessary packages. ```shell cd aem-cif-guides-venia/ mvn clean install -PautoInstallPackage,classic ``` -------------------------------- ### Start Webpack Development Server Source: https://github.com/adobedocs/commerce-cif-documentation/blob/master/tutorials/04-style-cif-component.md This command initiates the webpack development server from the `ui.frontend` directory. This server allows for rapid front-end development by proxying assets from AEM and enabling live reloading for style and JavaScript changes. Ensure you are in the `ui.frontend` directory before running this command. ```shell cd ui.frontend npm start ``` -------------------------------- ### Build and Deploy CIF Project with Maven Source: https://context7.com/adobedocs/commerce-cif-documentation/llms.txt This section outlines Maven commands for building and deploying the CIF project. It includes cloning the repository, deploying to AEM 6.x on-premise using specific profiles, building the `ui.frontend` module independently, and starting the webpack dev server for rapid front-end development. Verification steps for AEM instances are also provided. ```shell # Clone the Venia reference project git clone git@github.com:adobe/aem-cif-guides-venia.git cd aem-cif-guides-venia/ # Build and deploy to AEM 6.x on-premise mvn clean install -PautoInstallPackage,classic # Build only the ui.frontend module cd ui.frontend mvn clean install # Start webpack dev server for rapid front-end development npm start # Server runs at http://localhost:8080/ # Verify deployment in AEM # Package Manager: http://localhost:4502/crx/packmgr/index.jsp # OSGi Config: http://localhost:4502/system/console/configMgr # CIF Console: http://localhost:4502/libs/commerce/gui/content/configuration.html/conf # Products Console: http://localhost:4502/aem/products.html/var/commerce/products ``` -------------------------------- ### Build Frontend and Generate Client Libraries (Maven) Source: https://github.com/adobedocs/commerce-cif-documentation/blob/master/tutorials/04-style-cif-component.md Executes a Maven command to clean and install the `ui.frontend` module. This process compiles webpack projects, triggers NPM scripts like `npm run build`, and generates AEM client libraries. ```shell mvn clean install ``` -------------------------------- ### Deploying AEM Package (Shell) Source: https://github.com/adobedocs/commerce-cif-documentation/blob/master/tutorials/05-customize-cif-components.md This shell command deploys the AEM package to a local AEM instance using Maven. It cleans the project, installs the package, and targets both auto-installation and classic modes. ```shell $ cd aem-cif-guides-venia/ $ mvn clean install -PautoInstallPackage,classic ``` -------------------------------- ### Verify Client Library Inclusion in HTML Source: https://github.com/adobedocs/commerce-cif-documentation/blob/master/tutorials/04-style-cif-component.md Example HTML structure showing the inclusion of various client libraries (CSS and JavaScript) for AEM CIF. These libraries are served via '/etc.clientlibs' to abstract the source location. ```html
... ...