Uploaded image for project: 'Maven Site Plugin'
  1. Maven Site Plugin
  2. MSITE-772

Any element in <head> causes site to fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Bug
    • 3.5
    • None
    • site descriptor
    • None

    Description

      Any site descriptor containing elements in <head> causes the site plugin to fail with

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-site-plugin:3.5:site (default-cli) on project common-parent: SiteToolException: Error parsing site descriptor: TEXT must be immediately followed by END_TAG and not START_TAG (position: START_TAG seen ...<head>\n <anyElement/>... @74:26) -> [Help 1]

      The error happened initially with a <link> element added per the DOAP plugin.

      The error occurs after all "configuring plugin..." log lines, but before any "Generating XYZ report..." lines.

      The relevant portion of site_en.xml is

      <body>
              <head>
                  <anyElement/>
                  <link rel="meta" title="DOAP" href="${project.url}/doap_${project.artifactId}.rdf" type="application/rdf+xml"/>
              </head>
              <breadcrumbs/>
              <menu name="Modules" ref="modules"/>
              <menu name="Reports" ref="reports" inherit="bottom"/>
          </body>

      This worked in m-site-p:3.4, so is a regression in 3.5.

      Attachments

        1. m-site-p-3.5-exception.txt
          5 kB
          Gordon Pettey

        Activity

          People

            hboutemy Herve Boutemy
            gpettey Gordon Pettey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: