Uploaded image for project: 'Maven Eclipse Plugin (RETIRED)'
  1. Maven Eclipse Plugin (RETIRED)
  2. MECLIPSE-683

UTF8 Byte Order Marks in POM files are not ignored correctly

Attach filesAttach ScreenshotVotersWatch issueWatchersLinkUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    Description

      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:\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).

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            twohead Martin Müller
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment