title: Swagger CodeGen Dependency Issues
body: <p>I'm trying to get a project up and running with <a href="https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen-maven-plugin" rel="nofollow noreferrer">Swagger codegen Maven plugin</a>. I have the following <code>plugin</code> in my <code>pom.xml</code>. </p>
  
  <pre><code>&lt;build&gt;
      &lt;plugins&gt;
          &lt;plugin&gt;
              &lt;groupId&gt;io.swagger&lt;/groupId&gt;
              &lt;artifactId&gt;swagger-codegen-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;3.0.0-rc1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;goals&gt;
                          &lt;goal&gt;generate&lt;/goal&gt;
                      &lt;/goals&gt;
                      &lt;configuration&gt;
                          &lt;inputSpec&gt;${project.basedir}/src/main/resources/openapi.yaml&lt;/inputSpec&gt;
                          &lt;language&gt;spring&lt;/language&gt;
                          &lt;configOptions&gt;
                              &lt;sourceFolder&gt;src/gen/java/main&lt;/sourceFolder&gt;
                          &lt;/configOptions&gt;
                      &lt;/configuration&gt;
                  &lt;/execution&gt;
              &lt;/executions&gt;
          &lt;/plugin&gt;
      &lt;/plugins&gt;
  &lt;/build&gt;
  </code></pre>
  
  <p>When I run <code>mvn clean compile</code>, I get a bunch of dependency errors. For example, <code>fasterxml</code> and <code>threeten</code>. I'm surprised that the dependencies wouldn't be automatically configured and that everything would work out of the box. Am I doing something wrong or do you really need to manually add the dependencies to <code>pom.xml</code>?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>While digging through the code, I noticed there is a generated <code>pom.xml</code> (<code>target/generated-sources/swagger</code> with my config above) that seems to have the dependencies I need. Googling led to an <a href="https://github.com/swagger-api/swagger-codegen/issues/5410" rel="nofollow noreferrer">issue thread</a> concerning my problem. Looks like this is potentially a known issue. </p>
  
  <p>The dependency copying worked when I used <code>&lt;language&gt;jaxrs-resteasy&lt;/language&gt;</code> but I'm still working on other use cases (the <code>spring</code> I originally had and also <code>jaxrs-jersey</code>). </p>