Child pages
  • MojoFailureException
Skip to end of metadata
Go to start of metadata

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 failure of the build because there is something wrong with the dependencies or sources of a project, e.g. a compilation or a test failure.

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.

  • No labels

10 Comments

  1. this after apply patch 232 https://issues.apache.org/jira/browse/MAHOUT-232 wo I can do next? How to solve it?

    1. Sorry, but we can't help with the Mahout build. Please contact users@mahout.apache.org

      1. oh Thanks can your tell me how mahout can use svm to solve some problem now ? like KDD99 Data ?,i work on it to use svm Algorithms for a project ? but I don't kown how I solve it ,like wtat it is of some step ? thank you!

  2. Bonjour, j'ai besoin de compiler le code source opennms pour mon projet de fin d'études et au cours de la compilation avec le jdk 1.6.0_43, je trouve des erreurs et j'ai besoin de l'aide et merci.
    Cordialement,

    Voila las erreurs que j'ai trouvé:

    INFO ------------------------------------------------------------------------
    ERROR Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.
    3.2:compile (default-compile) on project opennms-puppet-provisioning-adapter: Co
    mpilation failure
    ERROR Failure executing javac, but could not parse the error:
    ERROR
    ERROR
    ERROR The system is out of resources.
    ERROR Consult the following stack trace for details.
    ERROR java.lang.OutOfMemoryError: PermGen space
    ERROR at java.lang.ClassLoader.defineClass1(Native Method)
    ERROR at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
    ERROR at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
    ERROR at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:14
    1)
    ERROR at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
    ERROR at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
    ERROR at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    ERROR at java.security.AccessController.doPrivileged(Native Method)
    ERROR at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    ERROR at org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(Isol
    atedClassLoader.java:56)
    ERROR at com.sun.tools.javac.jvm.ClassWriter.<init>(ClassWriter.java:840)
    ERROR at com.sun.tools.javac.jvm.ClassWriter.instance(ClassWriter.java:143)
    ERROR at com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:295)
    ERROR at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:72)
    ERROR at com.sun.tools.javac.main.Main.compile(Main.java:340)
    ERROR at com.sun.tools.javac.main.Main.compile(Main.java:279)
    ERROR at com.sun.tools.javac.main.Main.compile(Main.java:270)
    ERROR at com.sun.tools.javac.Main.compile(Main.java:87)
    ERROR at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    ERROR at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    ERROR at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    ERROR at java.lang.reflect.Method.invoke(Method.java:597)
    ERROR at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(Jav
    acCompiler.java:554)
    ERROR at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompile
    r.java:161)
    ERROR at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler
    Mojo.java:605)
    ERROR at org.apache.maven.plugin.CompilerMojo.execute(CompilerMojo.java:128)
    ERROR at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
    BuildPluginManager.java:101)
    ERROR at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
    .java:209)
    ERROR at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
    .java:153)
    ERROR at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
    .java:145)
    ERROR at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
    ct(LifecycleModuleBuilder.java:84)
    ERROR at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
    ct(LifecycleModuleBuilder.java:59)
    ERROR -> Help 1
    ERROR
    ERROR To see the full stack trace of the errors, re-run Maven with the -e swit
    ch.
    ERROR Re-run Maven using the -X switch to enable full debug logging.
    ERROR
    ERROR For more information about the errors and possible solutions, please rea
    d the following articles:
    ERROR Help 1 http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureExc
    eption
    ERROR
    ERROR After correcting the problems, you can resume the build with the command

    ERROR mvn <goals> -rf :opennms-puppet-provisioning-adapter

  3. 1.download source "https://github.com/SpringSource/spring-actionscript.git",
    2.run mvn clean compile
    3.exception ... ...
    who can help me solve this problem? thanks very much!

    INFO ------------------------------------------------------------------------
    INFO Reactor Summary:
    INFO
    INFO Spring Actionscript ............................... SUCCESS 0.343s
    INFO Spring Actionscript Core .......................... FAILURE 5.891s
    INFO Spring Actionscript Flex Extensions ............... SKIPPED
    INFO ------------------------------------------------------------------------
    INFO BUILD FAILURE
    INFO ------------------------------------------------------------------------
    INFO Total time: 7.735s
    INFO Finished at: Thu Aug 01 15:45:51 CST 2013
    INFO Final Memory: 13M/63M
    INFO ------------------------------------------------------------------------
    ERROR Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.0
    -RC2:compile-swc (default-compile-swc) on project spring-actionscript-core: Got
    25 errors building project, check logs -> Help 1
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
    rg.sonatype.flexmojos:flexmojos-maven-plugin:4.0-RC2:compile-swc (default-compil
    e-swc) on project spring-actionscript-core: Got 25 errors building project, chec
    k logs
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
    .java:213)
    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.buildProje
    ct(LifecycleModuleBuilder.java:84)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
    ct(LifecycleModuleBuilder.java:59)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
    ild(LifecycleStarter.java:183)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
    eStarter.java:161)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
    cher.java:290)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
    a:230)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
    uncher.java:409)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
    352)
    Caused by: org.apache.maven.plugin.MojoFailureException: Got 25 errors building
    project, check logs
    at org.sonatype.flexmojos.plugin.AbstractMavenMojo.checkResult(AbstractM
    avenMojo.java:294)
    at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.execu
    teCompiler(AbstractFlexCompilerMojo.java:1672)
    at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody0(
    CompcMojo.java:223)
    at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody1$
    advice(CompcMojo.java:36)
    at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody2(
    CompcMojo.java:217)
    at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody3$
    advice(CompcMojo.java:14)
    at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody4(
    CompcMojo.java:1)
    at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody5$
    advice(CompcMojo.java:17)
    at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute(CompcMojo.ja
    va:1)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
    BuildPluginManager.java:101)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
    .java:209)
    ... 19 more

  4. This is an out of memory issue. Try to increase the JVM maximum by exporting the MAVEN_OPTS like this:
    export MAVEN_OPTS="-Xmx4G"

    Then rerun your command.

  5. Hello to every body 

    i am using Weasis source code in Eclips IDE

    i loaded weasis's  source code  from github repository

    when it be launch in during compile show these errors follow bellow

    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project weasis-core-api: Compilation failure
    [ERROR] error: error reading C:\Users\Marco Pacs\.m2\repository\org\weasis\thirdparty\com\sun\media\jai-lib\1.1.4-b05\jai-lib-1.1.4-b05.jar; error in opening zip file
    [ERROR] -> [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 about the errors and possible solutions, please read the following articles:
    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    [ERROR] 
    [ERROR] After correcting the problems, you can resume the build with the command
    [ERROR]   mvn <goals> -rf :weasis-core-api
    [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile (default-compile) on project weasis-core-api: Compilation failure

    [ERROR] error: error reading C:\Users\Marco Pacs\.m2\repository\org\weasis\thirdparty\com\sun\media\jai-lib\1.1.4-b05\jai-lib-1.1.4-b05.jar; error in opening zip file

    [ERROR] -> [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 about the errors and possible solutions, please read the following articles:

    [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

    [ERROR] 

    [ERROR] After correcting the problems, you can resume the build with the command

    [ERROR]   mvn <goals> -rf :weasis-core-api

    I went to specified directory and i open jar  file  by 7ZIP  for test but it no open

    i need to guide 

    thanks in advance 

    1. I got the same error as yours...if yours is fixed please suggest the needful

    1. yeah!It was their server's issue.They repaired it now.