You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by 陈思淼 <ch...@gmail.com> on 2008/10/08 05:07:58 UTC
Can't I define the parent pom's version is LATEST?
I create a parent pom which contain the repository url and the common
plugin, all my pom are derived from this pom, my define like this:
>
> <parent>
>
<groupId>com.mycompany</groupId>
>
<artifactId>parent</artifactId>
>
<version> LATEST</version>
</parent>
I want to define the version is LATEST so all the project can get the
latest parent pom, but the maven dont allow me to do this, why can define
the dependent artifact version to be LATEST and cant define the parent pom?
Re: Can't I define the parent pom's version is LATEST?
Posted by Stephen Connolly <st...@gmail.com>.
I know this does not answer your question, but have a look at the
versions-maven-plugin
specifically, running
mvn versions:update-parent
it may be an alternative solution for the problem you have
Sent from my iPod
On 8 Oct 2008, at 04:07, "陈思淼" <ch...@gmail.com> wrote:
> I create a parent pom which contain the repository url and the common
> plugin, all my pom are derived from this pom, my define like this:
>>
>> <parent>
>>
> <groupId>com.mycompany</groupId>
>>
> <artifactId>parent</artifactId>
>>
> <version> LATEST</version>
>
> </parent>
>
> I want to define the version is LATEST so all the project can get the
> latest parent pom, but the maven dont allow me to do this, why can
> define
> the dependent artifact version to be LATEST and cant define the
> parent pom?
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Can't I define the parent pom's version is LATEST?
Posted by 陈思淼 <ch...@gmail.com>.
In the Maven 2.1M1 Release note ,the *Automatic* Parent Versioning has been
add to feature list, I dont think that a bad idea.
- Addition of a prepare-package phase
- Make-Like Reactor
Mode<http://docs.codehaus.org/display/MAVEN/Make+Like+Reactor+Mode>
(also
coming in plugin form for Maven 2.0.x)
- Parallel Artifact Resolution
- PGP Artifact Verification
- *Automatic* Parent Versioning
2008/10/9 Michael McCallum <gh...@apache.org>
> If you really really think about all of the implications this is one of
> worst
> conventions ever proposed, its bad enough that huge numbers of projects
> have
> snapshot versions for parents in source control which means you can never
> just check out one artifact and build it... you have to get the whole mess
>
> look at what xorg and kde are doing break everything down into discreet
> components that you can build independently... it reduces the learning
> curve,
> encourages reuse and makes it easy for people to contribute
>
> On Wed, 08 Oct 2008 16:20:16 陈思淼 wrote:
> > I've vote for this issue, I think the automatic parent pom version range
> is
> > reasonable request!
> >
>
> --
> Michael McCallum
> Enterprise Engineer
> mailto:gholam@apache.org
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>
Re: Can't I define the parent pom's version is LATEST?
Posted by Michael McCallum <gh...@apache.org>.
If you really really think about all of the implications this is one of worst
conventions ever proposed, its bad enough that huge numbers of projects have
snapshot versions for parents in source control which means you can never
just check out one artifact and build it... you have to get the whole mess
look at what xorg and kde are doing break everything down into discreet
components that you can build independently... it reduces the learning curve,
encourages reuse and makes it easy for people to contribute
On Wed, 08 Oct 2008 16:20:16 陈思淼 wrote:
> I've vote for this issue, I think the automatic parent pom version range is
> reasonable request!
>
--
Michael McCallum
Enterprise Engineer
mailto:gholam@apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org
Re: Can't I define the parent pom's version is LATEST?
Posted by 陈思淼 <ch...@gmail.com>.
I've vote for this issue, I think the automatic parent pom version range is
reasonable request!
2008/10/8 Brett Porter <br...@gmail.com>
> The parent does not accept any form of version range.
>
> Please refer to the following issue:
> http://jira.codehaus.org/browse/MNG-624
>
> Cheers,
> Brett
>
> 2008/10/8 陈思淼 <ch...@gmail.com>:
> > I create a parent pom which contain the repository url and the common
> > plugin, all my pom are derived from this pom, my define like this:
> >>
> >> <parent>
> >>
> > <groupId>com.mycompany</groupId>
> >>
> > <artifactId>parent</artifactId>
> >>
> > <version> LATEST</version>
> >
> > </parent>
> >
> > I want to define the version is LATEST so all the project can get the
> > latest parent pom, but the maven dont allow me to do this, why can define
> > the dependent artifact version to be LATEST and cant define the parent
> pom?
> >
>
>
>
> --
> Brett Porter
> Blog: http://blogs.exist.com/bporter/
>
Re: Can't I define the parent pom's version is LATEST?
Posted by Brett Porter <br...@gmail.com>.
The parent does not accept any form of version range.
Please refer to the following issue: http://jira.codehaus.org/browse/MNG-624
Cheers,
Brett
2008/10/8 陈思淼 <ch...@gmail.com>:
> I create a parent pom which contain the repository url and the common
> plugin, all my pom are derived from this pom, my define like this:
>>
>> <parent>
>>
> <groupId>com.mycompany</groupId>
>>
> <artifactId>parent</artifactId>
>>
> <version> LATEST</version>
>
> </parent>
>
> I want to define the version is LATEST so all the project can get the
> latest parent pom, but the maven dont allow me to do this, why can define
> the dependent artifact version to be LATEST and cant define the parent pom?
>
--
Brett Porter
Blog: http://blogs.exist.com/bporter/