Handy Commands For Developers | AEM Community Blog Seeding | Community
Skip to main content
kautuk_sahni
Community Manager
Community Manager
August 10, 2021

Handy Commands For Developers | AEM Community Blog Seeding

  • August 10, 2021
  • 1 reply
  • 808 views

BlogImage.jpg

Handy Commands For Developers by Ashish Mishra

Abstract

Maven
Scenario 1: Start the AEM in debug mode
java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=127.0.0.1:8765 -XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=256M -Xmx1024m -Dorg.apache.sling.commons.log.level=INFO -jar cq-quickstart-6.5.0.jar

Scenario 2: Build and deploy AEM
mvn -PautoInstallPackage -Padobe-public clean install

Scenario 3: Start the Spring boot application
mvn clean spring-boot:run

Scenario 4: Start Spring boot in specific mode
mvn clean spring-boot:run -Dspring-boot.run.profiles=local

Scenario 5: Skip J-Unit test
-Dmaven.test.skip=true

Scenario 6: Start Spring boot in debug mode and also run a specific profile and skip j unit test compilation
mvn spring-boot:run -Dspring-boot.run.jvmArguments="-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005" -Dspring-boot.run.profiles=local -Dmaven.test.skip=true

Read Full Blog

Handy Commands For Developers

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.

1 reply

Umesh_Thakur
Community Advisor
Community Advisor
August 12, 2021
Scenario 2: Build and deploy AEM
mvn -PautoInstallPackage -Padobe-public clean install

this command itself can be modified as
mvn -PautoInstallPackage -Padobe-public clean install -DskipTests

to skip the test on deployment.
kautuk_sahni
Community Manager
Community Manager
August 12, 2021

Well said 🙂

Kautuk Sahni