title: Make swagger codegen maven plugin access yaml files from another maven dependency
body: <p>I have an API written in Swagger for which I want to generate both the Service implementation and also the client, and they have to be in separate maven modules. </p>
  
  <p>I was thinking of separating them into 3 separate Maven modules (or submodules of the same parent pom).</p>
  
  <pre><code>parent
   +- api
      +- src/main/resources/api/service.yaml
   +- client
   +- service
  </code></pre>
  
  <p>Then in both client and service I would have the <code>swagger-codegen-maven-plugin</code>. This way both will be in sync and I will only maintain the service from one place. Other clients can also depend on the <code>api</code> artifact and generate their code from the <code>service.yaml</code> Swagger API definition.</p>
  
  <p>My difficulty is how do I make the service and client refer to the <code>service.yaml</code> in another Maven dependency?</p>
  
  <p>This is what I currently have in the service <code>pom.xml</code>, but it refers to the local resources of the service module, not to the <code>api</code> maven dependency. </p>
  
  <pre><code> &lt;plugin&gt;
          &lt;groupId&gt;io.swagger&lt;/groupId&gt;
          &lt;artifactId&gt;swagger-codegen-maven-plugin&lt;/artifactId&gt;
          &lt;version&gt;${io.swagger.codegen.version}&lt;/version&gt;
          &lt;executions&gt;
            &lt;execution&gt;
              &lt;id&gt;api&lt;/id&gt;
              &lt;goals&gt;
                &lt;goal&gt;generate&lt;/goal&gt;
              &lt;/goals&gt;
              &lt;configuration&gt;            
  &lt;!-- can this refer to another maven dependency's resources? --&gt; 
  &lt;inputSpec&gt;${basedir}/src/main/resources/api/service.yaml&lt;/inputSpec&gt;
                &lt;language&gt;spring&lt;/language&gt;
                &lt;library&gt;spring-boot&lt;/library&gt;
                &lt;modelPackage&gt;com.test.model&lt;/modelPackage&gt;
                &lt;apiPackage&gt;com.test.api&lt;/apiPackage&gt;
                &lt;generateSupportingFiles&gt;false&lt;/generateSupportingFiles&gt;
                &lt;configOptions&gt;
                  &lt;java8&gt;true&lt;/java8&gt;
                  &lt;dateLibrary&gt;java8&lt;/dateLibrary&gt;
                  &lt;interfaceOnly&gt;true&lt;/interfaceOnly&gt;
                &lt;/configOptions&gt;
              &lt;/configuration&gt;
            &lt;/execution&gt;
         &lt;/executions&gt;
      &lt;/plugin&gt;
  </code></pre>
  
  <p>Not sure if this is something I have to do from Maven, to refer to resources from another maven dependency, or something I have to do in the swagger plugin configuration.</p>