title: How to configure pom.xml for generate jooq classes into two different packages?
body: <p>My project consists of two packages, each of which uses the same database schema. In the future, both packages will become independent microservices.</p>
  <p><strong>Question:</strong> how to configure code generation in <strong>pom.xml</strong> so that folders with jooq classes are created in two different packages (<code>myProject/packageTwo/ Dao</code> and <code>myProject/packageOne/Dao</code>).</p>
  <p>For example, this decision results in jooq classes being created only in the second folder.</p>
  <pre><code>&lt;plugin&gt;
   &lt;groupId&gt;org.jooq&lt;/groupId&gt;
    &lt;artifactId&gt;jooq-codegen-maven&lt;/artifactId&gt;
    &lt;version&gt;3.15.3&lt;/version&gt;
  …
     &lt;target&gt;
          &lt;packageName&gt;myProject/packageOne/Dao&lt;/packageName&gt;
          &lt;directory&gt;target/generated-sources/jooq&lt;/directory&gt;
    &lt;/target&gt;
    &lt;target&gt;
          &lt;packageName&gt; myProject/packageTwo/Dao&lt;/packageName&gt;
          &lt;directory&gt;target/generated-sources/jooq&lt;/directory&gt;
    &lt;/target&gt;
  </code></pre>