title: jsonschema2pojo maven plugin configuration in execution not considered
body: <p>I am trying to use the jsonschema2pojo plugin for generating POJOs based on both schema and json sourceTypes. The configurations are specified per execution. But every time the plugin is reporting <strong>"One of sourceDirectory or sourcePaths must be provided"</strong>. I am able to run it when the configuration is provided at the plugin level ( global ). But then I can only specify one sourceType.</p>
  
  <pre><code>&lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.jsonschema2pojo&lt;/groupId&gt;
                  &lt;artifactId&gt;jsonschema2pojo-maven-plugin&lt;/artifactId&gt;
                  &lt;version&gt;0.5.1&lt;/version&gt;
                  &lt;executions&gt;
                      &lt;execution&gt;
                          &lt;id&gt;generate-schema&lt;/id&gt;
                          &lt;phase&gt;generate-sources&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;outputEncoding&gt;${project.build.sourceEncoding}&lt;/outputEncoding&gt;
                              &lt;outputDirectory&gt;${project.build.directory}/generated-sources&lt;/outputDirectory&gt;
                              &lt;annotationStyle&gt;jackson2&lt;/annotationStyle&gt;
                              &lt;generateBuilders&gt;false&lt;/generateBuilders&gt;
                              &lt;initializeCollections&gt;true&lt;/initializeCollections&gt;
                              &lt;refFragmentPathDelimiters&gt;#/&lt;/refFragmentPathDelimiters&gt;
                              &lt;sourceType&gt;jsonschema&lt;/sourceType&gt;
                              &lt;targetPackage&gt;com.company.app.integration.sabre.stub.rest&lt;/targetPackage&gt;
                              &lt;sourceDirectory&gt;${basedir}/src/main/resources/schema&lt;/sourceDirectory&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                      &lt;execution&gt;
                          &lt;id&gt;generate-json&lt;/id&gt;
                          &lt;phase&gt;generate-sources&lt;/phase&gt;
                          &lt;goals&gt;
                              &lt;goal&gt;generate&lt;/goal&gt;
                          &lt;/goals&gt;
                          &lt;configuration&gt;
                              &lt;outputEncoding&gt;${project.build.sourceEncoding}&lt;/outputEncoding&gt;
                              &lt;outputDirectory&gt;${project.build.directory}/generated-sources&lt;/outputDirectory&gt;
                              &lt;annotationStyle&gt;jackson2&lt;/annotationStyle&gt;
                              &lt;generateBuilders&gt;false&lt;/generateBuilders&gt;
                              &lt;initializeCollections&gt;true&lt;/initializeCollections&gt;
                              &lt;refFragmentPathDelimiters&gt;#/&lt;/refFragmentPathDelimiters&gt;
                              &lt;sourceType&gt;json&lt;/sourceType&gt;
                              &lt;targetPackage&gt;com.company.app.integration.sabre.stub.rest&lt;/targetPackage&gt;
                              &lt;sourceDirectory&gt;${basedir}/src/main/resources/json&lt;/sourceDirectory&gt;
                          &lt;/configuration&gt;
                      &lt;/execution&gt;
                  &lt;/executions&gt;
              &lt;/plugin&gt;
  
          &lt;/plugins&gt;
      &lt;/build&gt;
  </code></pre>
  
  <p>Is there any way to have the plugin use the configuration at execution level per goal ?</p>
  
  <p>Plugin version: 0.5.1</p>