[
https://jira.codehaus.org/browse/MSITE-670?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Herve Boutemy closed MSITE-670.
-------------------------------
Resolution: Fixed
Fix Version/s: 3.3
Assignee: Herve Boutemy
whoops, the <?xml instruction is written twice
fixed in [r1422691|http://svn.apache.org/viewvc?rev=1422691&view=rev]
> Cannot use site.xml generated by effective-site goal and output parameter as
> is
> -------------------------------------------------------------------------------
>
> Key: MSITE-670
> URL: https://jira.codehaus.org/browse/MSITE-670
> Project: Maven 2.x and 3.x Site Plugin
> Issue Type: Bug
> Components: site descriptor
> Affects Versions: 3.2
> Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 00:44:56-0800)
> Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
> Reporter: Arata
> Assignee: Herve Boutemy
> Priority: Minor
> Fix For: 3.3
>
>
> When no site descriptor file exists in the project,
> executing the effective-site goal and the site goal in order like below fails.
> >mvn -Doutput=src/site/site.xml site:effective-site
> >mvn site:site
> Error:
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.2:site (default-cli) on project
> maven-exercise: SiteToolException: Error parsing site descriptor: processing
> instruction can not have PITarget with reserveld xml name (position:
> START_DOCUMENT seen ...====================================================
> -->\r\n\r\n<?xml ... @16:7) -> [Help 1]
> The contents of site.xml generated by effective-site goal:
> {code:xml}<?xml version="1.0" encoding="UTF-8"?>
> <!-- ======================================================================
> -->
> <!--
> -->
> <!-- Generated by Maven Site Plugin on 2012-12-12T12:46:21
> -->
> <!-- See: http://maven.apache.org/plugins/maven-site-plugin/
> -->
> <!--
> -->
> <!-- ======================================================================
> -->
> <!-- ======================================================================
> -->
> <!--
> -->
> <!-- Effective site descriptor for project
> -->
> <!-- 'com.newmainsoftech:maven-exercise:jar:1.0-SNAPSHOT'
> -->
> <!--
> -->
> <!-- ======================================================================
> -->
> <?xml version="1.0" encoding="UTF-8"?>
> <project xsi:schemaLocation="http://maven.apache.org/DECORATION/1.3.0
> http://maven.apache.org/xsd/decoration-1.3.0.xsd" name="maven-exercise"
> xmlns="http://maven.apache.org/DECORATION/1.3.0"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <bannerLeft>
> <name>maven-exercise</name>
> </bannerLeft>
> <body>
> <links>
> <item name="maven-exercise" href="./" />
> </links>
> <menu ref="parent" />
> <menu ref="reports" />
> </body>
> </project>{code}
> When no site descriptor file exists, could you make the generated contents by
> the effective-site goal with the output parameter valid as a site descriptor
> file, so that the site goal works without removing duplicate XML declaration
> and the comments manually from it first?
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira