Uploaded image for project: 'Maven Clean Plugin'
  1. Maven Clean Plugin
  2. MCLEAN-55

maven clean seems to use old java.io API to clean the target directory

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5
    • 2.6.1
    • None

    Description

      Problem: the old java.io API cannot handle filenames that have a bad encoding, ie. iso-8859-1 encoded umlauts when running with LC_ALL=*.UTF-8.

      To reproduce the problem do:

      git clone https://github.com/jjYBdx4IL/filenameenc.git
      cd filenameenc
      mvn test
      mvn clean # <- produces an error when trying to remove target/

      The example itself demonstrates the problem and shows a solution by using java.nio.Files.newDirectoryStream().

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            cinquero Mark
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: