8

since I've inserted the option <lineEnding>unix</lineEnding> into my fileSets and files in my Maven assembly plugin configuration, strange files are placed in my tar.

They look as following:

ignore.me.1499711160.filtered.903528596.formatted
run.sh.2124782621.filtered.1130667884.formatted

Do you know why this occurrs?

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124

2 Answers2

7

This is a bug captured in MASSEMBLY-462. Either patch the plugin with the attached patch or revert to a previous version (try with 2.2-beta-4).

Pascal Thivent
  • 562,542
  • 136
  • 1,062
  • 1,124
5

I had the same problem i used excludes tag in the assembler, you can use it in pom too:

   <fileSet>
        <directory>DEV</directory>
        <outputDirectory>${file.separator}FileName${file.separator}DEV</outputDirectory>
        <useDefaultExcludes>true</useDefaultExcludes>
        <lineEnding>unix</lineEnding>
        <excludes>
          <exclude>*.formatted</exclude>
        </excludes>
    </fileSet>
Sid
  • 81
  • 1
  • 5
  • Thx that solved my problem. You could as well use `**/*.formatted` to make sure nested directories are also taken into account. – nicobo Jan 16 '18 at 13:37