Miguel Angel Medina

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (default-compile) on project Hy5TestPlugin: Compilation
 failure
[ERROR] error: javax.annotation.processing.FilerException: Attempt to reopen a file for path C:\***\Plugin.stapler
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.5:compile (defaul
t-compile) on project Hy5TestPlugin: Compilation failure
error: javax.annotation.processing.FilerException: Attempt to reopen a file for path C:\***\Plugin.stapler

Hoy me he encontrado con que mi Eclipse me devolvía un error como el que indico en el título del post.

He estado buscando caracteres ocultos, erróneos, mágicos...  pero nada ;-)

Modificando y guardando el fichero con eclipse el error desaparece.

A parte de lo indicado anteriormente, parace ser un bug de m2eclipse usando JPA (https://bugs.eclipse.org/bugs/show_bug.cgi?id=251323)



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

Tags:
Logo M4 ERP
Developer

Seguridad de la página de inicio

Please publish modules in offcanvas position.