Maven 2 切换到<;后我的程序集中的文件出现异常;线条结束>;unix</线条结束>;

Maven 2 切换到<;后我的程序集中的文件出现异常;线条结束>;unix</线条结束>;,maven-2,line-endings,maven-assembly-plugin,fileset,Maven 2,Line Endings,Maven Assembly Plugin,Fileset,因为我已经将选项unix插入到我的文件集和Maven assembly插件配置中的文件中,所以奇怪的文件被放在我的tar中 它们如下所示: ignore.me.1499711160.filtered.903528596.formatted run.sh.2124782621.filtered.1130667884.formatted ignore.me.149971160.filtered.903528596.formatted run.sh.2124782621.filtered.113066

因为我已经将选项
unix
插入到我的文件集和Maven assembly插件配置中的文件中,所以奇怪的文件被放在我的tar中

它们如下所示:

ignore.me.1499711160.filtered.903528596.formatted run.sh.2124782621.filtered.1130667884.formatted ignore.me.149971160.filtered.903528596.formatted run.sh.2124782621.filtered.1130667884.formatted
你知道为什么会发生这种情况吗?

这是一个在中捕获的错误。要么用附加的补丁修补插件,要么恢复到以前的版本(尝试使用2.2-beta-4)。

我在汇编程序中遇到了与使用excludes标记相同的问题,您也可以在pom中使用它:

   <fileSet>
        <directory>DEV</directory>
        <outputDirectory>${file.separator}FileName${file.separator}DEV</outputDirectory>
        <useDefaultExcludes>true</useDefaultExcludes>
        <lineEnding>unix</lineEnding>
        <excludes>
          <exclude>*.formatted</exclude>
        </excludes>
    </fileSet>

发展
${file.separator}文件名${file.separator}DEV
真的
unix
*.格式化

Thx解决了我的问题。您还可以使用
***.formatted
确保嵌套目录也被考虑在内。