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