Maven Package Error: [INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files
Error:
[INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files java.lang.NullPointerException at java.util.zip.ZipFile.getZipEntry(ZipFile.java:566) at java.util.zip.ZipFile.access$900(ZipFile.java:60) at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:524) at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:499) at java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:480) at org.eclipse.jdt.internal.compiler.batch.ClasspathJar.isPackage(ClasspathJar.java:155) at org.eclipse.jdt.internal.compiler.batch.ClasspathJar.findClass(ClasspathJar.java:94) at org.eclipse.jdt.internal.compiler.batch.FileSystem.findClass(FileSystem.java:262) at org.eclipse.jdt.internal.compiler.batch.FileSystem.findType(FileSystem.java:354) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.createPackage(LookupEnvironment.java:765) at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.buildTypeBindings(CompilationUnitScope.java:132) at org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment.buildTypeBindings(LookupEnvironment.java:194) at org.eclipse.jdt.internal.compiler.Compiler.internalBeginToCompile(Compiler.java:780) at org.eclipse.jdt.internal.compiler.Compiler.beginToCompile(Compiler.java:395) at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:485) at org.eclipse.jdt.internal.compiler.batch.Main.performCompilation(Main.java:4157) at org.eclipse.jdt.internal.compiler.batch.Main.compile(Main.java:1694) at org.codehaus.groovy.eclipse.compiler.InternalCompiler.doCompile(InternalCompiler.java:84) at org.codehaus.groovy.eclipse.compiler.GroovyEclipseCompiler.internalCompile(GroovyEclipseCompiler.java:132) at org.codehaus.groovy.eclipse.compiler.GroovyEclipseCompiler.performCompile(GroovyEclipseCompiler.java:90) at org.apache.maven.plugin.compiler.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:825) at org.apache.maven.plugin.compiler.CompilerMojo.execute(CompilerMojo.java:129) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) 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(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:497) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Error Environment
jdk 1.8 + maven 3.3.9
Solution:
Remove <compilerId>groovy-eclipse-compiler</compilerId> in pom
Similar Posts:
- [Solved] Git packaging error: [error] failed to perform fetch
- [Solved] Cannot initialize Cluster. Please check your configuration for mapreduce.framework.name and the correspond server addresses.
- [maven-38382;- 39064; java.lang.NoSuchMethodError: javax.ws.rs.core.Application.getProperties()Ljava/util/Map
- Jenkins Maven image surefire plugin failed to run [How to Solve]
- [Solved] MVN – version error: Exception in thread “main” java.lang.UnsupportedClassVersionError
- Maven’s Non-resolvable parent POM Problem
- java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Ja [How to Solve]
- New Maven project — pom.xml error [How to Solve]
- [Solved] Missing artifact com. oracle:ojdbc6 : jar:11.2.0.1.0 Problem solving ojdbc package pom.xml error
- [Solved] Failed to read artifact descriptor for org.apache.