Background:
I have a typical multi-module project, with a parent pom and a handful
of child poms inheriting from the parent.

The parent pom contains the version, which is inherited to the child
poms, which affect all generated child artifacts. So far so good.

Problem:
However, the parent pom is referred by version from each child pom,
which causes a slight maintenance problem when it's time to change the
version number. 

Parent POM
    <groupId>ggg</groupId>
    <artifactId>aaa</artifactId>
    <version>1.0.3</version>
    <packaging>pom</packaging>

Child POMs
    <parent> 
        <groupId>ggg</groupId>
        <artifactId>aaa</artifactId>
        <version>1.0.3</version>
    </parent>
    <artifactId>ccc</artifactId>
    <packaging>jar</packaging>


I have to update the version number in the parent pom, as well as all
references to the parent in each child pom. Clearly, this is clumsy.

AFAIK the version number of the parent must be present in the child pom.

Question:
So, what are the best practices for this problem?

Bi-condition:
I'm working mostly off-line, so the release plug-in (using a SNAPSHOT
version) is not appropriate in my case.

Many thanks in advance for any tips,
        /Jens



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to