Tag Archives: Maven Package Error

Maven Package Error: [Warning] The Pom for xxx is missing , no dependency inform

When creating a multi-module project using maven

Error reported when packaging for service_edu
[WARNING] The POM for com.mxc:wa-service:jar:1.0-SNAPSHOT is missing, no dependency information available
Solve the problem by executing install on the parent service module, and then you can package the service_edu

[Solved] Maven Package Error: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) Compilation failure javac: �Ҳ����ļ�:

Solve the messy code when using maven plugin in idea
Analyze the cause:
The above messy Chinese encoding is the local encoding of windows (GBK)
In the idea integration of maven so that the default vm encoding is utf-8.
Solution: Set the maven runtime vm file encoding to the local windows default encoding. Solve the problem.

—-DarchetypeCatalog=internal -Dfile.encoding=GBK

TRANSLATE with

[Solved] Maven Package Error: resources (default-resources) on project trace: Input length = 1 -> [Help 1]

Maven packaging error:

Failed to execute goal org.apache.maven.plugins:maven-resources-plugin

resources (default-resources) on project trace: Input length = 1 -> [Help 1]

handle:

The coding format of the idea project is set to utf-8,

Repair the garbled file in the file and repackage it.

Maven Package Error: [INFO] Using Groovy-Eclipse compiler to compile both Java and Groovy files

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