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 problem in their configuration or the information they retrieved from the POM.
The concrete meaning of the exception depends on the plugin so please have a look at its documentation. The documentation for many common Maven plugins can be reached via our plugin index.
For the special case of a network-related problem during artifact download or upload, you can also consult the following articles:
4 Comments
Anonymous
Failed to execute goal org.apache.maven.plugins:maven-install-plugin:2.4:install (default-cli) on project douber: The packaging for this project did not assign a file to the build artifact -> [Help 1]
Anonymous
Failed to execute goal com.github.wvengen:proguard-maven-plugin:2.0.14:proguard (proguard) on project XYZ: Obfuscation failed (result=1) -> [Help 1]
Anonymous
[ERROR] Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-8:codeserver (default-cli) on project xxx: GWT exited with status 1 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal net.ltgt.gwt.maven:gwt-maven-plugin:1.0-rc-8:codeserver (default-cli) on project praemissen_modul: GWT exited with status 1
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:216)
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:120)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:355)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:155)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:584)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:216)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
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)
Caused by: org.apache.maven.plugin.MojoExecutionException: GWT exited with status 1
at net.ltgt.gwt.maven.CommandLine.execute(CommandLine.java:50)
at net.ltgt.gwt.maven.AbstractDevModeMojo.execute(AbstractDevModeMojo.java:237)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:132)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
... 19 more
Anonymous
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:2.10.4:jar (attach-javadocs) on project organizationprofileenrollment:
MavenReportException : Error while generating Javadoc:
[ERROR] Exit code: 1 -
java.lang.StringIndexOutOfBoundsException : String index out of range: 69
[ERROR] at java.lang.String.substring(
String.java:1963 )
[ERROR] at sun.net.www.ParseUtil.unescape(
ParseUtil.java:164 )
[ERROR] at sun.net.www.ParseUtil.decode(
ParseUtil.java:200 )
[ERROR] at sun.misc.URLClassPath$FileLoader.<init>(
URLClassPath.java:1241 )
[ERROR] at sun.misc.URLClassPath$3.run(
URLClassPath.java:560 )
[ERROR] at sun.misc.URLClassPath$3.run(
URLClassPath.java:555 )
[ERROR] at java.security.AccessController.doPrivileged(
Native Method )
[ERROR] at sun.misc.URLClassPath.getLoader(
URLClassPath.java:554 )
[ERROR] at sun.misc.URLClassPath.getLoader(
URLClassPath.java:519 )
[ERROR] at sun.misc.URLClassPath.getNextLoader(
URLClassPath.java:484 )
[ERROR] at sun.misc.URLClassPath.access$100(
URLClassPath.java:65 )
[ERROR] at sun.misc.URLClassPath$1.next(
URLClassPath.java:266 )
[ERROR] at sun.misc.URLClassPath$1.hasMoreElements(
URLClassPath.java:277 )
[ERROR] at java.net.URLClassLoader$3$1.run(
URLClassLoader.java:601 )
[ERROR] at java.net.URLClassLoader$3$1.run(
URLClassLoader.java:599 )
[ERROR] at java.security.AccessController.doPrivileged(
Native Method )
[ERROR] at java.net.URLClassLoader$3.next(
URLClassLoader.java:598 )
[ERROR] at java.net.URLClassLoader$3.hasMoreElements(
URLClassLoader.java:623 )
[ERROR] at sun.misc.CompoundEnumeration.next(
CompoundEnumeration.java:45 )
[ERROR] at sun.misc.CompoundEnumeration.hasMoreElements(
CompoundEnumeration.java:54 )
[ERROR] at java.util.ServiceLoader$LazyIterator.hasNextService(
ServiceLoader.java:354 )
[ERROR] at java.util.ServiceLoader$LazyIterator.hasNext(
ServiceLoader.java:393 )
[ERROR] at java.util.ServiceLoader$1.hasNext(
ServiceLoader.java:474 )
[ERROR] at javax.xml.parsers.FactoryFinder$1.run(
FactoryFinder.java:293 )
[ERROR] at java.security.AccessController.doPrivileged(
Native Method )
[ERROR] at javax.xml.parsers.FactoryFinder.findServiceProvider(
FactoryFinder.java:289 )
[ERROR] at javax.xml.parsers.FactoryFinder.find(
FactoryFinder.java:267 )
[ERROR] at javax.xml.parsers.SAXParserFactory.newInstance(
SAXParserFactory.java:127 )
[ERROR] at com.sun.tools.doclets.internal.toolkit.builders.LayoutParser.parseXML(
LayoutParser.java:89 )
[ERROR] at com.sun.tools.doclets.internal.toolkit.builders.ClassBuilder.build(
ClassBuilder.java:120 )
[ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.generateClassFiles(
HtmlDoclet.java:189 )
[ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.generateClassFiles(
AbstractDoclet.java:194 )
[ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.startGeneration(
AbstractDoclet.java:139 )
[ERROR] at com.sun.tools.doclets.internal.toolkit.AbstractDoclet.start(
AbstractDoclet.java:82 )
[ERROR] at com.sun.tools.doclets.formats.html.HtmlDoclet.start(
HtmlDoclet.java:80 )
[ERROR] at com.sun.tools.doclets.standard.Standard.start(
Standard.java:39 )
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method )
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke(
NativeMethodAccessorImpl.java:62 )
[ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43 )
[ERROR] at java.lang.reflect.Method.invoke(
Method.java:498 )
[ERROR] at com.sun.tools.javadoc.DocletInvoker.invoke(
DocletInvoker.java:310 )
[ERROR] at com.sun.tools.javadoc.DocletInvoker.start(
DocletInvoker.java:189 )
[ERROR] at com.sun.tools.javadoc.Start.parseAndExecute(
Start.java:366 )
[ERROR] at com.sun.tools.javadoc.Start.begin(
Start.java:219 )
[ERROR] at com.sun.tools.javadoc.Start.begin(
Start.java:205 )
[ERROR] at com.sun.tools.javadoc.Main.execute(
Main.java:64 )
[ERROR] at com.sun.tools.javadoc.Main.main(
Main.java:54 )
[ERROR] javadoc: error - String index out of range: 69