title: Maven plugin jsonschema2pojo returns ClassNotFoundException
body: <p>I need to generate java pojos from JSON schema. I'm trying to use jsonschema2pojo maven plugin for this purpose. I wrote custom rule factory and I want to use it for pojos generation.
  Here is my jsonschema2pojo plugin configuration:</p>
  <pre><code>       &lt;plugin&gt;
              &lt;dependencies&gt;
                  &lt;dependency&gt;
                      &lt;groupId&gt;my.group.id&lt;/groupId&gt;
                      &lt;artifactId&gt;my-artifact-id&lt;/artifactId&gt;
                      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
                  &lt;/dependency&gt;
              &lt;/dependencies&gt;
              &lt;groupId&gt;org.jsonschema2pojo&lt;/groupId&gt;
              &lt;artifactId&gt;jsonschema2pojo-maven-plugin&lt;/artifactId&gt;
              &lt;version&gt;1.1.1&lt;/version&gt;
              &lt;executions&gt;
                  &lt;execution&gt;
                      &lt;id&gt;generateClassesFromSchema&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;/execution&gt;
              &lt;/executions&gt;
              &lt;configuration&gt;
                  &lt;sourceDirectory&gt;${basedir}/src/main/resources/schemas&lt;/sourceDirectory&gt;
                  &lt;targetPackage&gt;my.target.package&lt;/targetPackage&gt;
                  &lt;includeHashcodeAndEquals&gt;false&lt;/includeHashcodeAndEquals&gt;
                  &lt;customRuleFactory&gt;path.to.rule.factory.MyCustomRuleFactory&lt;/customRuleFactory&gt;
              &lt;/configuration&gt;
          &lt;/plugin&gt;
  </code></pre>
  <p><strong>MyCustomRuleFactory.java</strong> is the part of my project, dependency for which is inside plugin element. But when a do mvn clean install I get thi following:</p>
  <p><code>Failed to execute goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:1.1.1:generate (generateClassesFromSchema) on project my-artifact-id: Execution generateClassesFromSchema of goal org.jsonschema2pojo:jsonschema2pojo-maven-plugin:1.1.1:generate failed: java.lang.ClassNotFoundException: path.to.rule.factory.MyCustomRuleFactory</code></p>
  <p>What am I doing wrong?
  Thanks for any suggestion!</p>