Deploying Code to AEM | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
December 7, 2020

Deploying Code to AEM | AEM Community Blog Seeding

  • December 7, 2020
  • 0 replies
  • 823 views

BlogImage.jpg

Deploying Code to AEM by Jim

Abstract

Repo
The AEM Repo Tool can be used to quickly deploy files to an AEM server.

For example, to deploy your helloworld component folder onto AEM:
cd myproject/ui.apps/src/main/content/jcr_root/apps/myproject/components/helloworld
repo put

Maven
When you have several files in various folders of your AEM Maven Project that need to be deployed to the AEM server, use the mvn executable to run the commands. For example:

cd myproject
mvn -PautoInstallSinglePackage clean install

autoInstallSinglePackage is a profile in the project archetype that activates the Maven Vault Plugin to deploy the CRX package onto AEM. clean install compiles Java class files from scratch before installing them.

Options
Specify a different hostname

-Daem.host=dev.myhost.com
Specify a different port

-Daem.port=4503
Specify credentials

-Dvault.username=admin -Dvault.password='secret'
Skip Tests

-DskipTests
Example using all of these options

mvn -PautoInstallSinglePackage -Daem.host=dev.myhost.com -Daem.port=4503 -Dvault.username=admin -Dvault.password='secret' -DskipTests clean install

Read Full Blog

Deploying Code to AEM

Q&A

Please use this thread to ask the related questions.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.