On Thu, Apr 26, 2012 at 9:44 AM, Bondarenko Denis <[email protected]>wrote:

> 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: if com.examle.MyStrategy is moved into the separate module you have
set preparationGoals for maven-release-plugin:

    <build>
        <pluginManagement>
            <plugins>
                <plugin>
                    <groupId>org.apache.maven.plugins</groupId>
                    <artifactId>maven-release-plugin</artifactId>
                    <version>2.0</version>
                    <configuration>
                        <preparationGoals>clean install</preparationGoals>
                    </configuration>
                </plugin>

Reply via email to