You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (JIRA)" <ji...@codehaus.org> on 2007/12/01 17:50:57 UTC

[jira] Closed: (MSITE-196) Fml processing can't handle comments or blank lines before the tag

     [ http://jira.codehaus.org/browse/MSITE-196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Herve Boutemy closed MSITE-196.
-------------------------------

      Assignee: Herve Boutemy
    Resolution: Won't Fix

I confirm Dennis comments: if used, <?xml ... ?> MUST be the first characters, that is requested by the XML spec.
FYI, this fact is used to detect encoding: see http://www.w3.org/TR/2004/REC-xml-20040204/#sec-guessing

> Fml processing can't handle comments or blank lines before the <?xml version 1.0> tag
> -------------------------------------------------------------------------------------
>
>                 Key: MSITE-196
>                 URL: http://jira.codehaus.org/browse/MSITE-196
>             Project: Maven 2.x Site Plugin
>          Issue Type: Bug
>    Affects Versions: 2.0-beta-5
>            Reporter: Brian Fox
>            Assignee: Herve Boutemy
>            Priority: Minor
>
> Introducing the apache license at the top of the file causes an exception, even having a blank line will cause the same problem. In order to make this work, I had to do this:
> <?xml version="1.0"?>
> <!--
>  * Licensed to the Apache Software Foundation (ASF) under one
>  * or more contributor license agreements.  See the NOTICE file
>  * distributed with this work for additional information
>  * regarding copyright ownership.  The ASF licenses this file
>  * to you under the Apache License, Version 2.0 (the
>  * "License"); you may not use this file except in compliance
>  * with the License.  You may obtain a copy of the License at
>  *
>  * http://www.apache.org/licenses/LICENSE-2.0
>  *
>  * Unless required by applicable law or agreed to in writing,
>  * software distributed under the License is distributed on an
>  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>  * KIND, either express or implied.  See the License for the
>  * specific language governing permissions and limitations
>  * under the License. 
>  *
> -->

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira