title: HOw to use jsonschema2pojo in maven's POM
body: <p>I have a JSON File and I want to convert it to POJO, for this I am using the plugin of org.jsonschema2pojo in maven. I am not able to generate the resultant pojo.Here's the snippet from pom.xml</p>
  
  <pre><code>&lt;build&gt;
                  &lt;plugins&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.4.23&lt;/version&gt;
                          &lt;configuration&gt;
                              &lt;sourceDirectory&gt;${basedir}/src/main/resources/schema&lt;/sourceDirectory&gt;
                              &lt;targetPackage&gt;${basedir}/src/main/resources/result&lt;/targetPackage&gt;
                          &lt;/configuration&gt;
                          &lt;executions&gt;
                              &lt;execution&gt;
                                  &lt;goals&gt;
                                      &lt;goal&gt;generate&lt;/goal&gt;
                                  &lt;/goals&gt;
                              &lt;/execution&gt;
                          &lt;/executions&gt;
                      &lt;/plugin&gt;
                  &lt;/plugins&gt;
              &lt;/build&gt;
  </code></pre>
  
  <p>I am using the generate sources goal in maven. My expectation is that it should give me pojo files at ${basedir}/src/main/resources/result  location. However I am getting so. Please help me out.
  Thanks,
  Rajit</p>