Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 2.0-beta-5
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
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.
*
-->
Issue Links
- is related to
-
MNGSITE-4
broken links on http://maven.apache.org/plugins
-
According to the xml spec http://www.w3.org/TR/2006/REC-xml-20060816/#sec-prolog-dtd
"The document type declaration MUST appear before the first element in the document."
So adding the license before it makes it an invalid xml document.
I couldn't find any info on whitespace before the document type declaration.