mvn failure on build

It is a known problem with the maven assembly plugin configuration.

Since version 2.5 you must specify tarLongFileMode=posix for long file mode support.

Just edit the pom.xml and inside the <configuration> tag add:

<tarLongFileMode>posix</tarLongFileMode>

so the whole tag will be like:

<configuration>
    <tarLongFileMode>posix</tarLongFileMode>
    <descriptor>src/main/assembly/assembly.xml</descriptor>
</configuration>

In case you don't want to change the pom you can use

mvn clean install -Dassembly.tarLongFileMode=posix

Tags:

Java

Maven