[ 
https://issues.apache.org/jira/browse/MSITE-772?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15222829#comment-15222829
 ] 

Hervé Boutemy edited comment on MSITE-772 at 4/2/16 7:50 PM:
-------------------------------------------------------------

please read the second topic on migration guide from maven-site-plugin 3.4 to 
3.5 http://maven.apache.org/plugins/maven-site-plugin/migrate.html

you need to change to 

{code:xml}<body>
        <head><![CDATA[
            <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>{code}


notice that once this is fixed, you'll be hit by MSITE-769
maven-site-plugin 3.5.1 is being worked on to provide a solution for this 
second issue


was (Author: hboutemy):
please read the second topic on migration guide from maven-site-plugin 3.4 to 
3.5 http://maven.apache.org/plugins/maven-site-plugin/migrate.html

you need to change to 

{code:xml}<body>
        <head><![CDATA[
            <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>{code}


notice that once this is fixed, you'll be hit by MSITE-769
maven-site-plugin 3.5.1 is being worked on to provide a solution for this 
second issue

> Any element in <head> causes site to fail
> -----------------------------------------
>
>                 Key: MSITE-772
>                 URL: https://issues.apache.org/jira/browse/MSITE-772
>             Project: Maven Site Plugin
>          Issue Type: Bug
>          Components: site descriptor
>    Affects Versions: 3.5
>            Reporter: Gordon Pettey
>            Assignee: Hervé Boutemy
>         Attachments: m-site-p-3.5-exception.txt
>
>
> Any site descriptor containing elements in <head> causes the site plugin to 
> fail with
> {quote}[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]{quote}
> 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
> {code:xml}<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>{code}
> This worked in m-site-p:3.4, so is a regression in 3.5.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to