Stranges files in my assembly since switching to <lineEnding>unix</lineEnding>
Asked Answered
B

2

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?

Balf answered 2/6, 2010 at 13:46 Comment(0)
H
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).

Hunnish answered 2/6, 2010 at 14:28 Comment(0)
A
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>
Arlenaarlene answered 28/3, 2017 at 18:32 Comment(1)
Thx that solved my problem. You could as well use <exclude>**/*.formatted</exclude> to make sure nested directories are also taken into account.Gussy

© 2022 - 2024 — McMap. All rights reserved.