org.apache.maven.lifecycle.LifecycleExecutionException

tip

Change the in pom.xml to use xml parameters instead of the list.

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • An unknown compilation problem occurred
    via by Kevin Simonson,
  • when i perform perform test,then show error, my command log // Spring Roo 1.2.0.BUILD-SNAPSHOT [rev cae85b8] log opened at 2011-07-08 10:36:23 hint project --topLevelPackage com.stan.icsearcher hint persistence setup --database MYSQL --provider HIBERNATE database properties list database properties list database properties set --key database.username --value stan database properties set --key database4.password --value 888888 database properties set --key database.password --value 888888 database properties set --key database.url --value jdbc:mysql://localhost:3306/icshop?characterEncoding=UTF-8 database properties list // [failed] database reverse engineer --schema icshop --package ~.model --testAutomatically addon info id --searchResultId 1 osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml osgi obr start --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java osgi obr url remove --url http://spring-roo-repository.springsource.org/repository.xml addon install id --searchResultId 1 database reverse engineer --schema icshop --package ~.model --testAutomatically gwt setup perform tests perform eclipse // Spring Roo 1.2.0.BUILD-SNAPSHOT [rev cae85b8] log opened at 2011-07-08 13:24:51 //The follow is the error log [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.742s [INFO] Finished at: Fri Jul 08 14:03:21 CST 2011 [INFO] Final Memory: 7M/111M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.8:test (default-te st) on project icsearcher: There are test failures. [ERROR] [ERROR] Please refer to /home/stan/projects/icsearcher/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.pl ugins:maven-surefire-plugin:2.8:test (default-test) on project icsearcher: There are test failures . Please refer to /home/stan/projects/icsearcher/target/surefire-reports for the individual test res ults. 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.buildProject(LifecycleModule Builder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModule Builder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStart er.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) 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(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures. Please refer to /home/stan/projects/icsearcher/target/surefire-reports for the individual test res ults. at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:74) at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:644) at org.apache.maven.plugin.surefire.SurefirePlugin.executeAfterPreconditionsChecked(Surefi rePlugin.java:640) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java :103) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager .java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following ar ticles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    via by stanhangzhou xi,
  • when i perform perform test,then show error, my command log // Spring Roo 1.2.0.BUILD-SNAPSHOT [rev cae85b8] log opened at 2011-07-08 10:36:23 hint project --topLevelPackage com.stan.icsearcher hint persistence setup --database MYSQL --provider HIBERNATE database properties list database properties list database properties set --key database.username --value stan database properties set --key database4.password --value 888888 database properties set --key database.password --value 888888 database properties set --key database.url --value jdbc:mysql://localhost:3306/icshop?characterEncoding=UTF-8 database properties list // [failed] database reverse engineer --schema icshop --package ~.model --testAutomatically addon info id --searchResultId 1 osgi obr url add --url http://spring-roo-repository.springsource.org/repository.xml osgi obr start --bundleSymbolicName org.springframework.roo.wrapping.mysql-connector-java osgi obr url remove --url http://spring-roo-repository.springsource.org/repository.xml addon install id --searchResultId 1 database reverse engineer --schema icshop --package ~.model --testAutomatically gwt setup perform tests perform eclipse // Spring Roo 1.2.0.BUILD-SNAPSHOT [rev cae85b8] log opened at 2011-07-08 13:24:51 //The follow is the error log [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 8.742s [INFO] Finished at: Fri Jul 08 14:03:21 CST 2011 [INFO] Final Memory: 7M/111M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.8:test (default-te st) on project icsearcher: There are test failures. [ERROR] [ERROR] Please refer to /home/stan/projects/icsearcher/target/surefire-reports for the individual test results. [ERROR] -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.pl ugins:maven-surefire-plugin:2.8:test (default-test) on project icsearcher: There are test failures . Please refer to /home/stan/projects/icsearcher/target/surefire-reports for the individual test res ults. 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.buildProject(LifecycleModule Builder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModule Builder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStart er.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) 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(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures. Please refer to /home/stan/projects/icsearcher/target/surefire-reports for the individual test res ults. at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(SurefireHelper.java:74) at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(SurefirePlugin.java:644) at org.apache.maven.plugin.surefire.SurefirePlugin.executeAfterPreconditionsChecked(Surefi rePlugin.java:640) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java :103) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager .java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following ar ticles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
    via by stanhangzhou xi,
  • An unknown compilation problem occurred
    via by Kevin Simonson,
  • An unknown compilation problem occurred
    via by Kevin Simonson,
  • Getting Java error
    via GitHub by timeglider
    ,
    • org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.0:testCompile (default-testCompile) on project fsbe-domain: Compilation failure An unknown compilation problem occurred 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)

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    33 more bugmates