Maven Build - invalid LOC header (bad signature)

El mensaje de error es parecido al siguiente y puede producirse para una o más dependencias del proyecto:

[INFO] Compiling 186 source files to C:\Users\Miguel\workspace\tron\target\classes
[INFO] -------------------------------------------------------------
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] error: error reading C:\Users\Miguel\.m2\repository\org\glassfish\ha\ha-api\3.1.8\ha-api-3.1.8.jar; invalid LOC header (bad signature)
[INFO] 1 error
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9.547 s
[INFO] Finished at: 2014-06-16T11:31:05+01:00
[INFO] Final Memory: 7M/17M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5.1:compile (default-compile) on project trom: Compilation failure
[ERROR] error: error reading C:\Users\Miguel\.m2\repository\org\glassfish\ha\ha-api\3.1.8\ha-api-3.1.8.jar; invalid LOC header (bad signature)
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException


La solución al error pasa por borrar los jar que den problemas y volver a ejecutar 

mvn clean compile

Con esto volverá a descargar las dependencias desde los repositorios correspondientes y el problema estará solucionado

Tags:
Logo M4 ERP
Developer

Seguridad de la página de inicio

Please publish modules in offcanvas position.