I remove the version from all of the module poms entirely and just have
the multi module build pom have it. It works for me.
-Chris
"Kallin Nagelberg" <[EMAIL PROTECTED]> wrote on 01/07/2008
04:55:00:
> Can anyone tell me what is the best/simplest way to maintain a version
> number across all the poms in a multi-module project?
>
> They are all to be deployed with the same version every time.
>
> Ideally, the version could be declared in one place (the superpom), and
all
> children would know to use it.
>
> I've tried doing something like this in the root POM:
> <properties>
> <parent.groupId>com.something</parent.groupId>
> <parent.artifactId>something_parent</parent.artifactId>
> <parent.version>2.0</parent.version>
> </properties>
>
> and then
>
> <groupId>${parent.groupId}</groupId>
> <artifactId>${parent.artifactId}</artifactId>
> <version>${varent.version}</version>
>
> in the ROOT POM as well.
>
>
> Then I have my modules below set their parent to be:
> <groupId>${parent.groupId}</groupId>
> <artifactId>${parent.artifactId}</artifactId>
> <version>${varent.version}</version>
>
> This sort of works, but not great.
>
> What's the best way to do something like this?
>
>
> The following message has been automatically added by the Internet mail
> gateway to comply with the Group's Information Security requirements.
>
> "This e-mail has arrived via the Internet, and therefore you should be
> cautious about its origin and content. Replies which contain sensitive
> information and / or legal/contractual obligations are particularly
vulnerable.
>
> In these cases you should not reply unless you are authorised to do so,
> and adequate encryption is employed."
>
> If you have any questions, please contact the IS Service Desk.
**********************************************************************
CAUTION - This message is intended for the addressee named above. It may
contain privileged or confidential information.
If you are not the intended recipient of this message you must:
- Not use, copy, distribute or disclose it to anyone other than the addressee;
- Notify the sender via return email; and
- Delete the message (and any related attachments) from your computer
immediately.
Internet emails are not necessarily secure. Australian Associated Motors
Insurers Limited ABN 92 004 791 744 (AAMI), and its related entities, do not
accept responsibility for changes made to this message after it was sent.
Unless otherwise stated, views expressed within this email are the author's own
and do not represent those of AAMI.
**********************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]