java - Compile error in maven2: "invalid CEN header (bad signature)" -


I am migrating our Java-AE project to using Maven instead of anti.

Dependency for

   & Lt; Version & gt; 5.4.2 & lt; / Edition & gt; & Lt; / Dependencies & gt;   

I get the following error when trying to compile

  [Error] The target org.apache.maven.plugins failed to execute: maven- Compiler-plugin: 2. 3.2: compiled (default-compile) JAdaptive on project: compilation failure [error] error: C: \ user \ user .VisitEL1 \ .m2 \ repository \ javolution \ javolution \ 5.4.2 \ javolution-5.4.2.jar Error ; Invalid CEN header (bad signature) [Error] - & gt; [Help1] org.apache.maven.lifecycle.LifecycleExecutionException: failed to execute target o rg.apache.maven.plugins: maven-compiler-plugin: 2.3.2: compiled on project (default-compile) Jedaptive: compilation failure Error: Error reading C: \ user \ user EVSTEL1 \ .m2 \ repository \ javolution \ javoluti \ 5.4.2 \ javolution-5.4.2.jar; Invalid CEN header (bad sign) on Org.apache.maven.lifecycle.internal.MojoExecutor.execute. org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor Java on Org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor .java: 153): 145) org.apache.maven.lifecycle.internal .LifecycleModuleBuilder.buildProje on whistle (LifecycleModuleBuilder.java:84) org.apache.maven.lifecycle on .internal.LifecycleModuleBuilder.buildProje whistle org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu on iDD (LifecycleModuleBuilder.java: 59) org.apache.maven.lifecycle.internal.LifecycleStarter.execute at org.apache.maven.cli on org.apache.maven.DefaultMaven.execute (DefaultMaven.java:156) org. on apache.maven.DefaultMaven.doExecute (Lifecycl eStarter.java:1261) Mavnkli on org.apache.maven.cli.MavenCli.doMain (Mvenklikjawa 1 9 6) on Org.apache.maven.cli.MavenCli.main. Exicute (maven K.JAVA TDRERY 37) (Mavenkali.Java: 141) On the sun. ReflectkNativeMethodAccessorImplkinvoke0 (Basic Law) on sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl. Java: 39) sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAcces sorImpl.java:25) java.lang.reflect.Method.invoke on ( Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher. launchEnhanced (Laun cher.java:290) on org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.jav A: 230) on org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (La uncher.java : 409) org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java: 352) by: org.apache.maven.plugin.CompilationFailureException: compilation failed ure error: error in reading C: \ Users \ Croydon .IVSTEL1 \ .m2 \ repository \ javolution \ javoluti on \ 5.4.2 \ javolution-5.4.2.jar; Invalid center header (bad sign) org.apache on org.apache.maven.plugin.CompilerMojo.execute (CompilerMojo.java:128) on org.apache.maven.plugin.AbstractCompilerMojo.execute (AbstractCompiler Mojo.java:656) .maven.plugin.DefaultBuildPluginManager.executeMojo ((MojoExecutor Java default BuildPluginManager.java:101) org.apache.maven.lifecycle.internal.MojoExecutor.execute: 209) ... 19 more [error] [eRROR] [eRROR] For more information about errors and possible solutions, please see the following articles: [Error] [Help1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc eption    

This means that javolution-5.4.2 jar in your local repository is corrupt. I checked the Mewen Repo for version 5.4.2 on this. You can manually copy the jar into your local store after seeing it, whether it helps.

You can also try the following steps: -

  1. Change your local repository C: \ Users \ User.IVSTEL1 \ .m2 \ repository \ Javolution \ Javolution \ 5.4.2 \ javolution-5.4.2.jar . After that Maven will download it again for you.
  2. If there are problems after downloading again in the 5.4.2 version, try the following.

    & lt; Dependency & gt; & Lt; Group & gt; Javolution & lt; / Group & gt; & Lt; ArtifactId & gt; Javolution & lt; / ArtifactId> & Lt; Version & gt; 5.5.1 & lt; / Edition & gt; & Lt; / Dependencies & gt;

Comments