i try to build my Project with maven (goal: package clean) but i get the error:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project minimalistic-mvc-example: Compilation failure
[ERROR] error: error reading /home/chris/.m2/repository/org/hibernate/hibernate-core/4.1.9.Final/hibernate-core-4.1.9.Final.jar; invalid LOC header (bad signature)
[ERROR] -> [Help 1]
Unlike many other errors, this exception is not generated by the Maven core itself but by a plugin. As a rule of thumb, plugins use this error to signal a failure of the build because there is something wrong with the dependencies or sources of a project, e.g. a compilation or a test failure.
As both goals of the compiler plugin are automatically bound to phases in the Maven default lifecycle, we can execute these goals with the commands mvn compile and mvn test-compile.
They execute during the build process and should be configured in the <build/> element of pom. xml. They execute during the site generation process and they should be configured in the <reporting/> element of the pom.
Seems like your local jar file is corrupted. Delete your local Maven repo and try again. This will force maven to download the jar again, from remote repo.
In windows by default local maven repo will be in C:\Users\username\.m2\repository
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