Search code examples
mavenkeywordmeta

Meta keywords in Maven generated website


Is there any way to add a custom meta tag in a Maven generated web site ?

<meta name="keyword" content="keyword1, keyword2"/>

Thanks !


Solution

  • Easy, you just Inject some XML into the <head>

    e.g. in your src/site/site.xml

    <project>
      ...
      <body>
        ...
        <head>
          <meta name="keyword" content="keyword1, keyword2" />
        </head>
        ...
      </body>
      ...
    </project>