Maven build failing org.codehaus.plexus.archiver.AbstractArchiver$1 .hasNext(

This is an stack overflow error maven build ends up with certain number of times. Adding the following maven option seems to fix it fine.

$ export MAVEN_OPTS="-Xmx512m -Xms128m -Xss2m"

The above line will only be valid for the particular console session. Another good place to add this line is the bashrc file, this will keep the options valid permanently. Open your bashrc file and add the above line to it.

$ vi ~/.bashrc
Now Add this to it:
export MAVEN_OPTS="-Xmx512m -Xms128m -Xss2m"

Save and exit. Then source the bashrc to see change effects.

$ source ~/.bashrc

Thats all for this post. Have fun.

1 thought on “Maven build failing org.codehaus.plexus.archiver.AbstractArchiver$1 .hasNext(”

Leave a Reply to yimam Cancel reply

Your email address will not be published. Required fields are marked *