org.apache.maven.lifecycle.LifecycleExecutionException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • I can consistently reproduce this issue by deleting my local repository and running a multi-module project in parallel. The first build always fails. If you re-run the build, it passes. This affects version 4.2-beta of the flexmojos project. org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:compile-swc (default-compile-swc) on project wf_amCharts: java.lang.reflect.InvocationTargetException at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) 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:84) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) Caused by: org.apache.maven.plugin.MojoExecutionException: java.lang.reflect.InvocationTargetException at org.sonatype.flexmojos.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:290) at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1673) at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody0(CompcMojo.java:234) at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody1$advice(CompcMojo.java:49) at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody2(CompcMojo.java:228) 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.java:1) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 13 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.getArgumentsList(DefaultFlexCompilerArgumentParser.java:56) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.parseArguments(DefaultFlexCompilerArgumentParser.java:38) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.parseArguments(DefaultFlexCompilerArgumentParser.java:33) at org.sonatype.flexmojos.compiler.DefaultFlexCompiler$1.command(DefaultFlexCompiler.java:32) at org.sonatype.flexmojos.compiler.command.CommandUtil$1.run(CommandUtil.java:33) ... 1 more Caused by: java.lang.reflect.InvocationTargetException 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.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.doGetArgs(DefaultFlexCompilerArgumentParser.java:93) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.doGetArgs(DefaultFlexCompilerArgumentParser.java:106) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.doGetArgs(DefaultFlexCompilerArgumentParser.java:106) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.getArgumentsList(DefaultFlexCompilerArgumentParser.java:52) ... 5 more Caused by: org.sonatype.flexmojos.plugin.compiler.attributes.MavenRuntimeException: Unable to retrieve flex default namespaces! at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.getNamespace_aroundBody166(AbstractFlexCompilerMojo.java:2552) at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.getNamespace_aroundBody167$advice(AbstractFlexCompilerMojo.java:37) at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.getNamespace(AbstractFlexCompilerMojo.java:1) ... 13 more Caused by: java.io.FileNotFoundException: /Users/vincentmutambuki/.m2/repository/com/adobe/flex/framework/framework/4.5.1.21328/configs_zip/flex-config.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at java.io.FileReader.<init>(FileReader.java:55) at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.getNamespace_aroundBody166(AbstractFlexCompilerMojo.java:2532) ... 15 more
    via by Vincent Mutambuki,
  • java.io.FileNotFoundException
    via GitHub by mtelka
    ,
  • [android] Using Android SDK: /opt/android-sdk-linux [android] Creating Android AVD: /var/lib/jenkins/.android/avd/hudson_en-US_217_WVGA_android-10.avd ERROR: Failed to parse POMs java.io.FileNotFoundException: /var/lib/jenkins/.android/avd/hudson_en-US_217_WVGA_android-10.avd/config.ini (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at java.io.FileReader.<init>(FileReader.java:55) at hudson.plugins.android_emulator.util.Utils.parseConfigFile(Utils.java:349) at hudson.plugins.android_emulator.EmulatorConfig.parseAvdConfigFile(EmulatorConfig.java:234) at hudson.plugins.android_emulator.EmulatorConfig.access$300(EmulatorConfig.java:26) at hudson.plugins.android_emulator.EmulatorConfig$EmulatorConfigTask.call(EmulatorConfig.java:577) at hudson.plugins.android_emulator.EmulatorConfig$EmulatorConfigTask.call(EmulatorConfig.java:553) at hudson.remoting.LocalChannel.call(LocalChannel.java:45) at hudson.plugins.android_emulator.AndroidEmulator.doSetUp(AndroidEmulator.java:250) at hudson.plugins.android_emulator.AndroidEmulator.setUp(AndroidEmulator.java:220) at hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java:602) at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:462) at hudson.model.Run.run(Run.java:1404) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:478) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Archiving artifacts Finished: FAILURE
    via by Marton Meszaros,
    • org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:compile-swc (default-compile-swc) on project wf_amCharts: java.lang.reflect.InvocationTargetException at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217) 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:84) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:167) at org.apache.maven.lifecycle.internal.LifecycleThreadedBuilder$1.call(LifecycleThreadedBuilder.java:164) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:439) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:680) Caused by: org.apache.maven.plugin.MojoExecutionException: java.lang.reflect.InvocationTargetException at org.sonatype.flexmojos.plugin.AbstractMavenMojo.checkResult(AbstractMavenMojo.java:290) at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.executeCompiler(AbstractFlexCompilerMojo.java:1673) at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody0(CompcMojo.java:234) at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody1$advice(CompcMojo.java:49) at org.sonatype.flexmojos.plugin.compiler.CompcMojo.execute_aroundBody2(CompcMojo.java:228) 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.java:1) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 13 more Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.getArgumentsList(DefaultFlexCompilerArgumentParser.java:56) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.parseArguments(DefaultFlexCompilerArgumentParser.java:38) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.parseArguments(DefaultFlexCompilerArgumentParser.java:33) at org.sonatype.flexmojos.compiler.DefaultFlexCompiler$1.command(DefaultFlexCompiler.java:32) at org.sonatype.flexmojos.compiler.command.CommandUtil$1.run(CommandUtil.java:33) ... 1 more Caused by: java.lang.reflect.InvocationTargetException 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.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.doGetArgs(DefaultFlexCompilerArgumentParser.java:93) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.doGetArgs(DefaultFlexCompilerArgumentParser.java:106) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.doGetArgs(DefaultFlexCompilerArgumentParser.java:106) at org.sonatype.flexmojos.compiler.util.DefaultFlexCompilerArgumentParser.getArgumentsList(DefaultFlexCompilerArgumentParser.java:52) ... 5 more Caused by: org.sonatype.flexmojos.plugin.compiler.attributes.MavenRuntimeException: Unable to retrieve flex default namespaces! at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.getNamespace_aroundBody166(AbstractFlexCompilerMojo.java:2552) at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.getNamespace_aroundBody167$advice(AbstractFlexCompilerMojo.java:37) at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.getNamespace(AbstractFlexCompilerMojo.java:1) ... 13 more Caused by: java.io.FileNotFoundException: /Users/vincentmutambuki/.m2/repository/com/adobe/flex/framework/framework/4.5.1.21328/configs_zip/flex-config.xml (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:120) at java.io.FileReader.<init>(FileReader.java:55) at org.sonatype.flexmojos.plugin.compiler.AbstractFlexCompilerMojo.getNamespace_aroundBody166(AbstractFlexCompilerMojo.java:2532) ... 15 more

    Users with the same issue

    filipebatistafilipebatista
    5 times, last one,
    rprp
    1 times, last one,
    DavidDavid
    2 times, last one,
    jf-astjf-ast
    1 times, last one,
    stigkjstigkj
    1 times, last one,
    122 more bugmates