mvn clean
install -PautoInstallPackage -Daem.host=localhost -Daem.port=4502 -Dvault.password=admin
mvn clean install -PautoInstallBundle -Daem.host=localhost -Daem.port=4502 -Dvault.password=admin
Note: Port number is depending on what port you are running AEM instance. In the above commands, I gave 4502 as some example.
Command to open the AEM instance in debug mode:
Note: The above marked one in the red is port number on which debug instance runs.
In Eclipse, open the debug mode and under Run select debug configurations and from there select Remote Java Application --> right click --> New --> give port number same as above marked in the red.
Command to start the AEM Author instance:
java -Xmx1024m -jar cq-author-4502.jar
Note: Xmx means maximum allocation of the RAM for the aem service
java -Xms1024m -jar cq-author-4502.jar
note: Xms means Minimum allocation of the RAM for the arm service
Using JAX-RS AND JERSY to write RESTFUL services in OSGI(APACHE FELIX, AEM)
https://chanchal.wordpress.com/2015/01/11/using-jax-rs-and-jersey-to-write-restful-services-in-osgi-apache-felix-adobe-cq5aem/
https://helpx.adobe.com/experience-manager/using/restful-services.html
Link Checker Transformer and it's role in validating the page links:
Link checker Transformer can be used to disable or enable the external links validation on the content pages. It is up to us to decide on which one we have to choose from options like Disable entire Link checker transformer, mark entire links are valid or skip the validation of the link.
To Disable the entire Link Checker Transformer:
Go to http://localhost:4502/system/console/configMgr and search for Day CQ Link Checker Transformer and in that select the Disable Checking option.
For certain Domain we can disable the link by adding overriding pattern:
For Example Link Check Override patterns: if we add ^hello/, then any external link starting with System will not be checked. You can add additional pattern to it.
How to make sure some links are always valid or always skip?
We can use x-cq-linkchecker="valid" parameter in anchor tags to make always make that particular link as valid or
x-cq-linkchecker="skip" parameter in anchor tags to make always make that particular link as skip, since it even didn't check the links.
Useful links for Link checking:
http://tostring.me/206/how-to-disable-adobe-cq-link-checker/
AEM CHEAT SHEET:
https://github.com/paulrohrbeck/aem-links/blob/master/cheatsheet.md
HOW TO CHECK THE USAGE OF THE COMPONENT IN THE WEBSITE?
1. In local instance or any AEM environment go
to http://localhost:6502/libs/cq/search/content/querydebug.html
2. Start building the query something like this:
path=/content/<Specific site>
property=sling:resourceType
property.value=<project-name>/components/content/text
Note: we can skip /app and directly give the path of component as stated above.
3. Hit search
Will keep on Adding the points.
mvn clean install -PautoInstallBundle -Daem.host=localhost -Daem.port=4502 -Dvault.password=admin
Note: Port number is depending on what port you are running AEM instance. In the above commands, I gave 4502 as some example.
Command to open the AEM instance in debug mode:
java -Xdebug
-Xnoagent -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=30303
-XX:+HeapDumpOnOutOfMemoryError -XX:MaxPermSize=512M -Xmx1024m -jar
cq-author-p4502.jar -p 4502 -verbose -nofork
Note: The above marked one in the red is port number on which debug instance runs.
In Eclipse, open the debug mode and under Run select debug configurations and from there select Remote Java Application --> right click --> New --> give port number same as above marked in the red.
Command to start the AEM Author instance:
java -Xmx1024m -jar cq-author-4502.jar
Note: Xmx means maximum allocation of the RAM for the aem service
java -Xms1024m -jar cq-author-4502.jar
note: Xms means Minimum allocation of the RAM for the arm service
Using JAX-RS AND JERSY to write RESTFUL services in OSGI(APACHE FELIX, AEM)
https://chanchal.wordpress.com/2015/01/11/using-jax-rs-and-jersey-to-write-restful-services-in-osgi-apache-felix-adobe-cq5aem/
https://helpx.adobe.com/experience-manager/using/restful-services.html
Link Checker Transformer and it's role in validating the page links:
Link checker Transformer can be used to disable or enable the external links validation on the content pages. It is up to us to decide on which one we have to choose from options like Disable entire Link checker transformer, mark entire links are valid or skip the validation of the link.
To Disable the entire Link Checker Transformer:
Go to http://localhost:4502/system/console/configMgr and search for Day CQ Link Checker Transformer and in that select the Disable Checking option.
For certain Domain we can disable the link by adding overriding pattern:
For Example Link Check Override patterns: if we add ^hello/, then any external link starting with System will not be checked. You can add additional pattern to it.
How to make sure some links are always valid or always skip?
We can use x-cq-linkchecker="valid" parameter in anchor tags to make always make that particular link as valid or
x-cq-linkchecker="skip" parameter in anchor tags to make always make that particular link as skip, since it even didn't check the links.
Useful links for Link checking:
http://tostring.me/206/how-to-disable-adobe-cq-link-checker/
AEM CHEAT SHEET:
https://github.com/paulrohrbeck/aem-links/blob/master/cheatsheet.md
HOW TO CHECK THE USAGE OF THE COMPONENT IN THE WEBSITE?
1. In local instance or any AEM environment go
to http://localhost:6502/libs/cq/search/content/querydebug.html
2. Start building the query something like this:
path=/content/<Specific site>
property=sling:resourceType
property.value=<project-name>/components/content/text
Note: we can skip /app and directly give the path of component as stated above.
3. Hit search
Will keep on Adding the points.
No comments:
Post a Comment