Methods for installing or deploying code from your local file system into an AEM server.
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
Java class files are compiled into OSGi bundles and deployed using 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
autoInstallSinglePackageis a profile in the project archetype that activates the Maven Vault Plugin to deploy the CRX package onto AEM.
clean installcompiles Java class files from scratch before installing them.
Specify a different hostname
Specify a different port
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
Another option is to use the FileVault VLT command line tool. This utility exposes a map of AEM’s CRX content to enable file transfer between the content repository (JCR) and the file system.