I'm trying to improve the search engine optimization of my project's
maven-site-plugin generated website by following some best practices. I'm
already using sitemapxml-maven-plugin to produce a sitemap for search
engines.

I'd like to configure a canonical URL link element for each page as well,
but I don't see any hint of such a thing existing in the documentation. I
know it's relatively easy to insert arbitrary elements in the header of ALL
pages, like analytics code, but it seems like adding a unique element to
the header of every page is more challenging, and might need to be
supported directly by the generator.

Is anyone doing this sort of thing? Short of making code changes to
maven-site-plugin and possibly every plugin that generates reports, I think
I might need to insert the canonical URL link elements by parsing the
generated HTML after the fact.

Greg Chabala

Reply via email to