org.apache.maven.lifecycle.LifecycleExecutionException

Failed to execute goal io.swagger:swagger-codegen-maven-plugin:2.2.2-SNAPSHOT:generate (generate-server) on project adapter: Execution generate-server of goal io.swagger:swagger-codegen-maven-plugin:2.2.2-SNAPSHOT:generate failed.


Solutions on the web4880

Solution icon of github
Failed to execute goal io.swagger:swagger-codegen-maven-plugin:2.2.2-SNAPSHOT:generate (generate-server) on project adapter: Execution generate-server of goal io.swagger:swagger-codegen-maven-plugin:2.2.2-SNAPSHOT:generate failed.

Solution icon of github
via GitHub by vojtechhabarta
, 6 months ago
Failed to execute goal cz.habarta.typescript-generator:typescript-generator-maven-plugin:1.15-SNAPSHOT:generate (rest) on project <xxx>: Execution rest of goal cz.habarta.typescript-generator:typescript-generator-maven-plugin:1.15-SNAPSHOT:generate failed.

Solution icon of github
Failed to execute goal org.raml.plugins:jaxrs-raml-maven-plugin:1.3.4-SNAPSHOT:generate-raml (default) on project shoppingbag.rest.service: Execution default of goal org.raml.plugins:jaxrs-raml-maven-plugin:1.3.4-SNAPSHOT:generate-raml failed.

Solution icon of stackoverflow
Failed to execute goal org.apache.cxf:cxf-codegen-plugin:2.2.1:wsdl2java (generate-sources) on project ws-test: Execution generate-sources of goal org.apache.cxf:cxf-codegen-plugin:2.2.1:wsdl2java failed.

Solution icon of github
Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate (generate) on project aaa.bbb.ccc: Execution generate of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate failed.

Solution icon of github
Failed to execute goal org.raml.plugins:jaxrs-raml-maven-plugin:1.3.4-SNAPSHOT:generate-raml (raml) on project wa-im-rest-war: Execution raml of goal org.raml.plugins:jaxrs-raml-maven-plugin:1.3.4-SNAPSHOT:generate-raml failed.

Solution icon of github
Failed to execute goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate (generate) on project aaa.bbb.ccc: Execution generate of goal org.jvnet.jaxb2.maven2:maven-jaxb2-plugin:0.13.1:generate failed.

Solution icon of github
Failed to execute goal com.github.kongchen:swagger-maven-plugin:3.0-SNAPSHOT:generate (default) on project restservices: null

Solution icon of github
via GitHub by iddo
, 1 year ago
Failed to execute goal com.github.kongchen:swagger-maven-plugin:1.1.3-SNAPSHOT:generate (gen-api-docs) on project MAMService: null

Solution icon of github
Failed to execute goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:0.4.16:generate (default) on project telmgr-schema: Execution default of goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:0.4.16:generate failed.

Stack trace

  • org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal io.swagger:swagger-codegen-maven-plugin:2.2.2-SNAPSHOT:generate (generate-server) on project adapter: Execution generate-server of goal io.swagger:swagger-codegen-maven-plugin:2.2.2-SNAPSHOT:generate failed. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:224) 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:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:862) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:286) at org.apache.maven.cli.MavenCli.main(MavenCli.java:197) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution generate-server of goal io.swagger:swagger-codegen-maven-plugin:2.2.2-SNAPSHOT:generate failed. at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208) ... 20 more Caused by: java.lang.NullPointerException at io.swagger.codegen.plugin.CodeGenMojo.execute(CodeGenMojo.java:348) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) ... 21 more

Write tip

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

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.