Hi, all

Imo:

If project is single-module type, than com.examle.MyStrategy should be
moved in separated project.
This separated project should produce, for example, this artefact:
  <groupId>com.example</groupId>
  <artifactId>jooq-strategy</artifactId>
  <version>1.0.0.1</version>
And pom in original project should looks like this:
.....
<plugin>
  <groupId>org.jooq</groupId>
  <artifactId>jooq-codegen-maven</artifactId>
  <version>2.2.2</version>
  <dependencies>
     <dependency>
        <groupId>com.example</groupId>
        <artifactId>jooq-strategy</artifactId>
        <version>1.0.0.1</version>
     </dependencies>
   </dependency>
.....
If project is multi-module, than approach is slightly different.
 com.examle.MyStrategy should be moved in separated module.
Module(where it will be used) should declare dependency on that.
And pom of original module should look like this:
<plugin>
  <groupId>org.jooq</groupId>
  <artifactId>jooq-codegen-maven</artifactId>
  <version>2.2.2</version>
  <dependencies>
     <dependency>
        <groupId>com.example</groupId>
        <artifactId>jooq-strategy</artifactId>
        <version>${project.version}</version>
     </dependencies>
   </dependency>

Btw, since it my first letter to this list, I want to express my
gratitude to Lukas for his amazing work on JOOQ.
Thank You, Lukas!

Best regards,
Denis

On Wed, Apr 25, 2012 at 10:13 PM, Lukas Eder <[email protected]> wrote:
> I've recently had a good question here about how to use the
> jooq-codegen Maven plugin with a custom generator strategy:
> https://sourceforge.net/apps/trac/jooq/ticket/1355
>
> I raised the issue on Stack Overflow:
> http://stackoverflow.com/questions/10322155/how-to-use-a-custom-strategy-with-the-jooq-code-generator-and-maven
>
> Any ideas by the "Maven pros" on this list welcome! (feel free to
> answer directly on Stack Overflow)
>
> Cheers
> Lukas

Reply via email to