March 28, 2020
Estimated Post Reading Time ~

Useful Commands used while working with AEM/Adobe CQ5

To Start AEM In Author Instance:
java -Xmx1024m -jar cq-author-4502.jar

To Start AEM In Publish Instance:
java -Xmx1024m -jar cq-publish-4502.jar

Note: Xms means Minimum allocation of the RAM for the AEM service

Maven Commands Used to Deploy Projects On AEM:
mvn clean install -PautoInstallPackage -Daem.host=localhost -Daem.port=portNumber -Dvault.password=admin

mvn clean install -PautoInstallBundle -Daem.host=localhost -Daem.port=portNumber -Dvault.password=admin

Note: Port number is depending on what port you are running AEM instance. In the above commands

Start AEM In Debug Mode:
java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=portNumber
-XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=512M -Xmx1024m -jar cq-author-p4502.jar -p 4502 -verbose -nofork


- OR -

Add below line in start.bat file.
set CQ_JVM_OPTS=-server -debug -XX:MaxPermSize=256M -Xnoagent -Xmx1024M -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,
suspend=n,address=portNumber

Note: Port number is on which debug instance runs.

Maven Commands:
-----------------
maven [options] [goal [goal2 [goal3] ...]]

Options:
-D,--define arg          Define a system property
-E,--emacs                Produce logging information without adornments
-P,--plugin-help         Display help on using a given plugin
-X,--debug                Produce execution debug output
-b,--nobanner           Suppress logo banner
-d,--dir arg               Set effective working directory (ignored with -p or -f)
-e,--exception           Produce exception stack traces
-f,--find arg              Set project file and effective working directory by finding
the project file
-g,--goals                Display available goals
-h,--help                 Display help information
-i,--info                   Display system information
-o,--offline               Build is happening offline
-p,--pom arg            Set project file
-q,--quiet                 Reduce execution output
-u,--usage                Display help on using the current project
-v,--version              Display version information

-P, -g, -h, -i, -u and -v cause Maven to exit immediately without running any goals given


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.