title: How can I generate several api classes with OpenApi maven plugin?
body: <p>I have a Swagger file and the Maven plugin generates a big API class for me. How would I have to set the plugin to create one endpoint per API class?</p>
  
  <p>The current config of the plugin is:</p>
  
  <pre><code>            &lt;plugin&gt;
                  &lt;groupId&gt;org.openapitools&lt;/groupId&gt;
                  &lt;artifactId&gt;openapi-generator-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;4.2.0&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;swagger-codegen-fbs4me&lt;/id&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;inputSpec&gt;${project.basedir}/src/main/openapi/CarAPI_v0.2.yaml&lt;/inputSpec&gt;
                              &lt;generatorName&gt;spring&lt;/generatorName&gt;
                              &lt;library&gt;spring-boot&lt;/library&gt;
                              &lt;skipValidateSpec&gt;true&lt;/skipValidateSpec&gt;
                              &lt;configHelp&gt;false&lt;/configHelp&gt;
                              &lt;templateDirectory&gt;${project.basedir}/src/main/resources/templates&lt;/templateDirectory&gt;
                              &lt;configOptions&gt;
                                  &lt;delegatePattern&gt;false&lt;/delegatePattern&gt;
                                  &lt;apiPackage&gt;com.ger.car.somewhere.clients&lt;/apiPackage&gt;
                                  &lt;modelPackage&gt;com.ger.car.somewhere.model&lt;/modelPackage&gt;
                                  &lt;dateLibrary&gt;java8&lt;/dateLibrary&gt;
                                  &lt;java8&gt;true&lt;/java8&gt;
                              &lt;/configOptions&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  </code></pre>