org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:fabric8-maven-plugin:3.1-SNAPSHOT:resource (fmp) on project fmp-test: Execution fmp of goal io.fabric8:fabric8-maven-plugin:3.1-SNAPSHOT:resource failed: Cannot load service io.fabric8.maven.generator.webapp.WebAppGenerator defined in jar:file:/home/james/.m2/repository/io/fabric8/fabric8-maven-generator-webapp/3.1-SNAPSHOT/fabric8-maven-generator-webapp-3.1-SNAPSHOT.jar!/META-INF/fabric8/generator-default : java.lang.reflect.InvocationTargetException. Aborting

GitHub | jamesnetherton | 8 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

    WebAppGenerator throws IllegalStateException on initial build

    GitHub | 8 months ago | jamesnetherton
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.fabric8:fabric8-maven-plugin:3.1-SNAPSHOT:resource (fmp) on project fmp-test: Execution fmp of goal io.fabric8:fabric8-maven-plugin:3.1-SNAPSHOT:resource failed: Cannot load service io.fabric8.maven.generator.webapp.WebAppGenerator defined in jar:file:/home/james/.m2/repository/io/fabric8/fabric8-maven-generator-webapp/3.1-SNAPSHOT/fabric8-maven-generator-webapp-3.1-SNAPSHOT.jar!/META-INF/fabric8/generator-default : java.lang.reflect.InvocationTargetException. Aborting

    Root Cause Analysis

    1. java.lang.IllegalStateException

      basedir /home/james/Spike/fmp-test/target/classes does not exist

      at org.apache.maven.shared.utils.io.DirectoryScanner.scan()
    2. Apache Maven Shared Utils
      DirectoryScanner.scan
      1. org.apache.maven.shared.utils.io.DirectoryScanner.scan(DirectoryScanner.java:384)
      1 frame
    3. io.fabric8.maven
      WebAppGenerator.<init>
      1. io.fabric8.maven.generator.webapp.handler.AbstractAppServerHandler.scanFiles(AbstractAppServerHandler.java:29)
      2. io.fabric8.maven.generator.webapp.handler.AbstractAppServerHandler.hasOneOf(AbstractAppServerHandler.java:40)
      3. io.fabric8.maven.generator.webapp.handler.JettyAppSeverHandler.isApplicable(JettyAppSeverHandler.java:23)
      4. io.fabric8.maven.generator.webapp.AppServerDetector.detect(AppServerDetector.java:32)
      5. io.fabric8.maven.generator.webapp.WebAppGenerator.<init>(WebAppGenerator.java:67)
      5 frames
    4. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:423)
      4 frames
    5. io.fabric8.maven
      ResourceMojo.execute
      1. io.fabric8.maven.core.util.PluginServiceFactory.createOrRemoveService(PluginServiceFactory.java:139)
      2. io.fabric8.maven.core.util.PluginServiceFactory.readServiceDefinitionFromUrl(PluginServiceFactory.java:100)
      3. io.fabric8.maven.core.util.PluginServiceFactory.readServiceDefinitions(PluginServiceFactory.java:88)
      4. io.fabric8.maven.core.util.PluginServiceFactory.createServiceObjects(PluginServiceFactory.java:73)
      5. io.fabric8.maven.plugin.generator.GeneratorManager.generate(GeneratorManager.java:58)
      6. io.fabric8.maven.plugin.ResourceMojo$3.customizeConfig(ResourceMojo.java:584)
      7. io.fabric8.maven.docker.config.ConfigHelper.resolveImages(ConfigHelper.java:51)
      8. io.fabric8.maven.plugin.ResourceMojo.getResolvedImages(ResourceMojo.java:570)
      9. io.fabric8.maven.plugin.ResourceMojo.executeInternal(ResourceMojo.java:233)
      10. io.fabric8.maven.plugin.AbstractFabric8Mojo.execute(AbstractFabric8Mojo.java:61)
      11. io.fabric8.maven.plugin.ResourceMojo.execute(ResourceMojo.java:225)
      11 frames
    6. Maven Plugin
      DefaultBuildPluginManager.executeMojo
      1. org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
      1 frame
    7. 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
    8. 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
    9. 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
    10. 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