Build mvn error

I am trying to build one of the projects using the "mvn package" and I always see an error. I installed maven in Ubuntu as "sudo apt-get install maven"

The following is the error:

 [ERROR] Failed to execute goal org.apache.maven.plugins:maven-assembly-plugin:2.5.3:single (create-archive) on project : Execution create-archive of goal org.apache.maven.plugins:maven-assembly-plugin:2.5.3:single failed: client id '11012121111423' is too large ( > 4013111 ) -> [Help 1] 

What is wrong, what I don’t understand at all.

+8
java maven
source share
1 answer

Known maven build plugin configuration problem .

Starting with version 2.5, you must specify tarLongFileMode = posix to support long files.

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

 <tarLongFileMode>posix</tarLongFileMode> 

so the whole tag will look like this:

 <configuration> <tarLongFileMode>posix</tarLongFileMode> <descriptor>src/main/assembly/assembly.xml</descriptor> </configuration> 
+19
source share

All Articles