Report invalid LOC header (bad signature) exception handling when using Eclipse to package a MAVEN project

Source: Internet
Author: User
Tags sha1 stack trace

package on Eclipse, error:
[INFO] Including org.codehaus.groovy:groovy-all:jar:2.4.3 in the shaded jar. [INFO]------------------------------------------------------------------------[INFO] BUILD Failure[info]-------- ----------------------------------------------------------------[INFO] Total time:8.269 s[info] finished at: 2017-11-06t11:08:57+08:00[info] Final Memory:62m/644m[info]----------------------------------------------------- -------------------[ERROR]Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade (default) on project Com.project.name:Error Creating shaded Jar:invalid LOC header (bad signature)"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 on the errors and possible solutions, please read the following articles:[error] [Help 1] http://c Wiki.apache.org/confluence/display/maven/mojoexecutionexception

  

when prompted to execute with the Mvn-x package under the project directory, print out the detailed stack information:

[DEBUG] processing JAR H:\apache-maven-3.3.9\repository\org\apache\parquet\parquet-jackson\1.7.0\ Parquet-jackson-1.7.0.jar[INFO]------------------------------------------------------------------------[INFO] BUILD Failure[info]-------- ----------------------------------------------------------------[INFO] Total time:43.299 s[info] finished at: 2017-11-06t11:35:18+08:00[info] Final Memory:33m/759m[info]----------------------------------------------------- -------------------[ERROR] Failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade (default) On project Com.project.name:Error creating shaded jar:invalid LOC header (bad signature), [Help 1]org.apache.maven. Lifecycle. Lifecycleexecutionexception:failed to execute goal org.apache.maven.plugins:maven-shade-plugin:2.4.3:shade (default ) on project Com.project.name:Error creating shaded jar:invalid LOC header (bad signature) at Org.apache.maven.li Fecycle.internal.MojoExecutor.execute (mojoexecutor.java:212) at Org.apache.maven.lifecycle.internal.MojoExecutor.execute (mojoexecutor.java:153) at Org.apache.mavEn.lifecycle.internal.MojoExecutor.execute (mojoexecutor.java:145) at Org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (lifecyclemodulebuilder.java:116) at Org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (lifecyclemodulebuilder.java:80) at Org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build ( singlethreadedbuilder.java:51) at Org.apache.maven.lifecycle.internal.LifecycleStarter.execute (Lifecyclestarte

  

See the last debug message to find the corresponding directory " H:\apache-maven-3.3.9\repository\org\apache\parquet\parquet-jackson\ 1.7.0\ ", find the file ending with. sha1-in-progress, stating that the jar is not downloading properly, deleting the re-execution, and observing the directory:

When you do this, you'll be prompted as follows:

description Normal download, corresponding directory:

is normal. (more to say, if you find the progress bar is half gone, you can stop the deletion and re-come; In addition, the domestic use of Aliyun Maven library is much faster)   Summary: when the invalid LOC header appears (bad signature), follow the prompts with the-X execution mvn found,. sha1-in-progress Delete, re-execute.

Report invalid LOC header (bad signature) exception handling when using Eclipse to package a MAVEN project

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.