org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.1.5:sets (install gem sets for compile) on project Diety: error in executing jruby

Stack Overflow | Taras Serba | 9 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    When package JRuby project with ruby-maven 'META-INF/jruby.home/bin/gem' folder is lost

    Stack Overflow | 9 months ago | Taras Serba
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal de.saumya.mojo:gem-maven-plugin:1.1.5:sets (install gem sets for compile) on project Diety: error in executing jruby

    Root Cause Analysis

    1. java.io.FileNotFoundException

      loading resource from classloader failed: META-INF/jruby.home/bin/gem

      at de.saumya.mojo.ruby.ScriptUtils.getScriptFromResource()
    2. de.saumya.mojo
      AbstractGemMojo.execute
      1. de.saumya.mojo.ruby.ScriptUtils.getScriptFromResource(ScriptUtils.java:47)
      2. de.saumya.mojo.ruby.script.ScriptFactory.newScriptFromResource(ScriptFactory.java:150)
      3. de.saumya.mojo.ruby.script.ScriptFactory.newScriptFromJRubyJar(ScriptFactory.java:115)
      4. de.saumya.mojo.ruby.gems.GemsInstaller.maybeAddArtifact(GemsInstaller.java:236)
      5. de.saumya.mojo.ruby.gems.GemsInstaller.installGems(GemsInstaller.java:156)
      6. de.saumya.mojo.ruby.gems.GemsInstaller.installGems(GemsInstaller.java:119)
      7. de.saumya.mojo.gem.SetsMojo.installGems(SetsMojo.java:113)
      8. de.saumya.mojo.gem.SetsMojo.executeWithGems(SetsMojo.java:77)
      9. de.saumya.mojo.gem.AbstractGemMojo.executeJRuby(AbstractGemMojo.java:508)
      10. de.saumya.mojo.jruby.AbstractJRubyMojo.execute(AbstractJRubyMojo.java:293)
      11. de.saumya.mojo.gem.AbstractGemMojo.execute(AbstractGemMojo.java:238)
      11 frames
    3. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      1 frame
    4. Maven Core
      DefaultMaven.execute
      1. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
      2. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
      3. org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
      4. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
      5. org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
      6. org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
      7. org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
      8. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
      9. org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
      10. org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
      10 frames
    5. M3 Interceptor
      MavenCli.main
      1. org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
      2. org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
      3. org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
      3 frames
    6. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:498)
      4 frames
    7. Plexus
      Launcher.main
      1. org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
      2. org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
      3. org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
      4. org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
      4 frames