Maven Eclipse Plugin
  1. Maven Eclipse Plugin
  2. MECLIPSE-56

Generated .project-file misses encoding declaration

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.5
    • Labels:
      None

      Description

      Hi,

      I'm experiencing problems creating eclipse project files, if the project's description in pom.xml contains special characters like german umlauts (like "öüä"). Refreshing the eclipse workspace after running eclipse:eclipse results in the following message from eclipse:

      "Errors occurred while refreshing resources with the local file system.
      Failed to read the project description file (.project) for comworld-eventlisteners. The file has been changed on disk, and it now contains invalid information. The project will not function properly until the description file is restored to a valid state."

      This is caused by the content of the .project's generated comment-tag containing the exact same description as in pom.xml. But the .project-file is generated without stating an encoding parser should use to read it. So, if I prepend the line
      <?xml version="1.0" encoding="ISO-8859-15"?>
      eclipse is able to read the file just fine.

      Regards,
      Stefan

        Issue Links

          Activity

          Stefan Hübner created issue -
          Stefan Hübner made changes -
          Field Original Value New Value
          Attachment MECLIPSE-56-resourcesForAdditionalTestcaseszip [ 18824 ]
          Stefan Hübner made changes -
          Stefan Hübner made changes -
          Brett Porter made changes -
          Workflow Maven [ 46297 ] Maven New [ 51941 ]
          fabrizio giustina made changes -
          Link This issue depends upon MNG-2025 [ MNG-2025 ]
          Stefan Hübner made changes -
          Link This issue depends upon PLX-214 [ PLX-214 ]
          Hervé Boutemy made changes -
          Assignee Herve Boutemy [ hboutemy ]
          Arnaud HERITIER made changes -
          Component/s Workspace settings [ 13075 ]
          Hervé Boutemy made changes -
          Status Open [ 1 ] In Progress [ 3 ]
          Hervé Boutemy made changes -
          Status In Progress [ 3 ] Closed [ 6 ]
          Fix Version/s 2.5 [ 13593 ]
          Resolution Fixed [ 1 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 10:00:37 UTC 2015 [ 1428228037919 ]
          Mark Thomas made changes -
          Workflow jira [ 12720483 ] Default workflow, editable Closed status [ 12750990 ]
          Mark Thomas made changes -
          Project Import Sun Apr 05 23:47:18 UTC 2015 [ 1428277638729 ]
          Mark Thomas made changes -
          Workflow jira [ 12958617 ] Default workflow, editable Closed status [ 12995502 ]

            People

            • Assignee:
              Hervé Boutemy
              Reporter:
              Stefan Hübner
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development