Expand my Community achievements bar.

org.apache.sling.sitemap.impl.SitemapScheduler is not working in aem 6.5.13.0

Avatar

Level 1

  I am trying to generate sitemap xml using SitemapScheduler. Tried with creating sitemapGenerator by extending ResourceTreeSitemapGenerator and included in the Scheduler config also, But nothing is working.  on demand sitemap generation is  also not working and there is no any error logs. Please suggest any way to resolve this. 

4 Replies

Avatar

Community Advisor

Hi @Komalar, we recently implemented this and it is working for us.
can you please let me know your approach or code snippet if you can share it? 

Avatar

Level 1

I have override the sitemapscheduler config by passing name , crone expression, include generators and search path and also extends the 

ResourceTreeSitemapGenerator as below screen shot.
We are using acs-aem-commons.version 5.0.6
scheduler is triggering and there is no any error in logs but still it is not generating sitemap.xml under /var

Komalar_0-1692799520148.png