You want to omit the version tag from both the parent tag and the
child pom itself? No, this is not possible.

If you at least include the version in the parent tag, I believe you
can omit the version in the child. If it complains, try
${parent.version} or something.

Wayne

On 8/15/07, EJ Ciramella <[EMAIL PROTECTED]> wrote:
> But in this case, there is still a parent entry:
>
> <project xmlns="http://maven.apache.org/POM/4.0.0";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> http://maven.apache.org/maven-v4_0_0.xsd";>
>  <modelVersion>4.0.0</modelVersion>
>  <parent>
>    <groupId>lty</groupId>
>    <artifactId>app</artifactId>
>  </parent>
>  <artifactId>lty-utils</artifactId>
>  <packaging>jar</packaging>
>
> Won't work.
>
> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Achim Abeling
> Sent: Wednesday, August 15, 2007 2:24 AM
> To: users@maven.apache.org
> Subject: Re: Version numbering
>
> Hi,
>
> I think you can just omit the version element in the child pom.
>
> Best regards
> Achim
>
> EJ Ciramella wrote:
> > Is there any way for a child pom to simply inherit the version number
> > from the parent?
> >
> > We have a few use cases where this would be very helpful.
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to