I am trying to build one of project using "mvn package"
and I am always seeing an error. I installed maven in Ubuntu as "sudo apt-get install maven"
Below is the error I am getting:
[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 I am not able to understand at all.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With