[BUG] Description './run_in_docker.sh mvn package' fails
Created by: benwiley4000
Bug Report Checklist
-
Have you provided a full/minimal spec to reproduce the issue? - [N/A] Have you validated the input using an OpenAPI validator (example)?
-
What's the version of OpenAPI Generator used? 5.0.0-SNAPSHOT (latest) -
Have you search for related issues/PRs? -
What's the actual output vs expected output? -
[Optional] Bounty to sponsor the fix (example)
Description
I was able to build ./run_in_docker.sh
using the cloned repo but the command ./run_in_docker.sh mvn package
fails:
[main] ERROR org.openapitools.codegen.DefaultCodegen - ERROR! Not handling class QueryParameter {
class Parameter {
name: limit
in: null
description: this is a description
required: true
deprecated: null
allowEmptyValue: null
style: null
explode: null
allowReserved: null
schema: null
examples: null
example: null
content: null
$ref: null
}
in: query
} as Body Parameter at the moment
And later:
407901 [INFO] Tests run: 1168, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 86.97 s - in TestSuite
437940 [INFO]
437940 [INFO] Results:
437940 [INFO]
437940 [INFO] Tests run: 1168, Failures: 0, Errors: 0, Skipped: 0
437941 [INFO]
437967 [INFO]
437968 [INFO] --- jacoco-maven-plugin:0.8.5:report (jacoco-site) @ openapi-generator ---
438124 [INFO] Loading execution data file /gen/modules/openapi-generator/target/jacoco.exec
438177 [INFO] ------------------------------------------------------------------------
438178 [INFO] Reactor Summary for openapi-generator-project 5.0.0-SNAPSHOT:
438180 [INFO]
438181 [INFO] openapi-generator-project .......................... SUCCESS [ 49.913 s]
438181 [INFO] openapi-generator-core ............................. SUCCESS [ 36.482 s]
438182 [INFO] openapi-generator (core library) ................... FAILURE [05:35 min]
438184 [INFO] openapi-generator (executable) ..................... SKIPPED
438185 [INFO] openapi-generator (maven-plugin) ................... SKIPPED
438186 [INFO] openapi-generator-gradle-plugin (maven wrapper) .... SKIPPED
438189 [INFO] openapi-generator-online ........................... SKIPPED
438189 [INFO] ------------------------------------------------------------------------
438191 [INFO] BUILD FAILURE
438194 [INFO] ------------------------------------------------------------------------
438198 [INFO] Total time: 07:16 min
438199 [INFO] Finished at: 2020-05-26T20:42:26Z
438201 [INFO] ------------------------------------------------------------------------
438205 [ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.5:report (jacoco-site) on project openapi-generator: An error has occurred in JaCoCo report generation.: Error while creating report: null: EOFException -> [Help 1]
438210 [ERROR]
438210 [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
And here's the error output of ./run_in_docker.sh mvn -e package
:
135222 [INFO] Tests run: 1168, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 83.827 s - in TestSuite
165229 [INFO]
165230 [INFO] Results:
165230 [INFO]
165230 [INFO] Tests run: 1168, Failures: 0, Errors: 0, Skipped: 0
165231 [INFO]
165255 [INFO]
165255 [INFO] --- jacoco-maven-plugin:0.8.5:report (jacoco-site) @ openapi-generator ---
165414 [INFO] Loading execution data file /gen/modules/openapi-generator/target/jacoco.exec
165471 [INFO] ------------------------------------------------------------------------
165472 [INFO] Reactor Summary for openapi-generator-project 5.0.0-SNAPSHOT:
165473 [INFO]
165474 [INFO] openapi-generator-project .......................... SUCCESS [ 6.487 s]
165476 [INFO] openapi-generator-core ............................. SUCCESS [ 11.217 s]
165478 [INFO] openapi-generator (core library) ................... FAILURE [02:24 min]
165479 [INFO] openapi-generator (executable) ..................... SKIPPED
165480 [INFO] openapi-generator (maven-plugin) ................... SKIPPED
165481 [INFO] openapi-generator-gradle-plugin (maven wrapper) .... SKIPPED
165483 [INFO] openapi-generator-online ........................... SKIPPED
165484 [INFO] ------------------------------------------------------------------------
165485 [INFO] BUILD FAILURE
165486 [INFO] ------------------------------------------------------------------------
165487 [INFO] Total time: 02:43 min
165488 [INFO] Finished at: 2020-05-26T20:46:19Z
165488 [INFO] ------------------------------------------------------------------------
165492 [ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.5:report (jacoco-site) on project openapi-generator: An error has occurred in JaCoCo report generation.: Error while creating report: Unknown block type 52. -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.jacoco:jacoco-maven-plugin:0.8.5:report (jacoco-site) on project openapi-generator: An error has occurred in JaCoCo report generation.
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
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:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.plugin.MojoExecutionException: An error has occurred in JaCoCo report generation.
at org.jacoco.maven.AbstractReportMojo.execute (AbstractReportMojo.java:168)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
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:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: org.apache.maven.reporting.MavenReportException: Error while creating report: Unknown block type 52.
at org.jacoco.maven.AbstractReportMojo.executeReport (AbstractReportMojo.java:184)
at org.jacoco.maven.AbstractReportMojo.execute (AbstractReportMojo.java:166)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
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:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
Caused by: java.io.IOException: Unknown block type 52.
at org.jacoco.core.data.ExecutionDataReader.readBlock (ExecutionDataReader.java:119)
at org.jacoco.core.data.ExecutionDataReader.read (ExecutionDataReader.java:93)
at org.jacoco.core.tools.ExecFileLoader.load (ExecFileLoader.java:60)
at org.jacoco.core.tools.ExecFileLoader.load (ExecFileLoader.java:74)
at org.jacoco.maven.ReportSupport.loadExecutionData (ReportSupport.java:89)
at org.jacoco.maven.ReportMojo.loadExecutionData (ReportMojo.java:61)
at org.jacoco.maven.AbstractReportMojo.executeReport (AbstractReportMojo.java:178)
at org.jacoco.maven.AbstractReportMojo.execute (AbstractReportMojo.java:166)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
at org.apache.maven.cli.MavenCli.execute (MavenCli.java:957)
at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:289)
at org.apache.maven.cli.MavenCli.main (MavenCli.java:193)
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:282)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
openapi-generator version
5.0.0-SNAPSHOT (latest)
OpenAPI declaration file content or url
Command line used for generation
Steps to reproduce
git clone https://github.com/OpenAPITools/openapi-generator
cd openapi-generator
./run_in_docker.sh
./run_in_docker.sh mvn package