UTF8 Byte Order Marks in POM files are not ignored correctly
------------------------------------------------------------

                 Key: MECLIPSE-683
                 URL: http://jira.codehaus.org/browse/MECLIPSE-683
             Project: Maven 2.x Eclipse Plugin
          Issue Type: Bug
          Components: Core : Dependencies resolution and build path (.classpath)
    Affects Versions: 2.8
            Reporter: Martin Müller
         Attachments: stacktrace.txt

This is the same problem as in the maven sql plugin 
(http://jira.codehaus.org/browse/MSQL-33).

If one builds with 
% mvn eclipse:clean eclipse:eclipse -Declipse.workspace=WORKSPACE_LOCATION
and pom.xml files contain the utf8 byte order mark 
(http://en.wikipedia.org/wiki/Byte_order_mark) the projects in the workspace 
are not recorgnized correctly in the eclipse workspace. A warning indicates 
that the procect is not recognized:

[WARNING] could not read workspace 
project:D:\Projekte\Workspaces\Trunk\.metadata\.plugins\org.eclipse.core.resources\.projects\projectname
org.codehaus.plexus.util.xml.pull.XmlPullParserException: only whitespace 
content allowed before start tag and not \uef (position: START_DOCUMENT seen 
\uef... @1:1)
        at 
org.codehaus.plexus.util.xml.pull.MXParser.parseProlog(MXParser.java:1519)
        at 
org.codehaus.plexus.util.xml.pull.MXParser.nextImpl(MXParser.java:1395)


This leads to a external dependencies instead of correct workspace dependencies.

Testcase can be easily created with e.g. Copy XML Editor, which defaults to 
save the byte order mark in UTF-8 files (see options).

-- 
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


Reply via email to