if you are getting the "invalid LOC header (bad signature)" when building the maven project you need to identify the relevant packages and delete from the local repository which is in the /home/[user]/.m2/repository/
ex. /home/kosala/.m2/repository/org/codehaus
Try to rebuild the project.
ex. /home/kosala/.m2/repository/org/codehaus
Try to rebuild the project.