You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Guillaume Lederrey <gu...@gmail.com> on 2008/01/22 10:53:15 UTC

Versionning of parent pom

Hello !

By reading http://docs.codehaus.org/display/MAVEN/Release+Management I
have the impression that I should be able to use something like :

	<parent>
		<groupId>myParentGroup</groupId>
		<artifactId>myParentArtifact</artifactId>
		<version>RELEASE</version>
	</parent>

It doesnt work:

[INFO] Failed to resolve artifact.

GroupId: myParentGroup
ArtifactId: myParentArtifact
Version: RELEASE

Reason: Unable to determine the release version

  myParentGroup:myParentArtifact:pom:RELEASE

If I have a look at the related maven-metadata in my maven repository,
I dont see a <release/> tag nor a <latest/>, so I guess I have a
problem in my release process.

  <groupId>myParentGroup</groupId>
  <artifactId>myParentArtifact</artifactId>
  <version>0.1.1</version>
  <versioning>
    <versions>
      <version>0.1.1</version>
      <version>0.1.2</version>
      <version>0.1.3</version>
      <version>0.1.4</version>
      <version>0.1.6</version>
    </versions>
    <lastUpdated>20080114133145</lastUpdated>
  </versioning>

I am a bit lost, where should I be looking ? I am using Maven 2.0.7,
is it sufficient for these functionalities ? Should I upgrade Maven ?

Thanks for your help !
</metadata>

-- 
Jabber : gehel@amessage.ch
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Versionning of parent pom

Posted by Guillaume Lederrey <gu...@gmail.com>.
Thanks !

I was looking at the documentation of the release plugin, and
completely forgot the deploy plugin.

It works fine now ...

On 22/01/2008, Jeff MAURY <je...@jeffmaury.com> wrote:
> You must install or deploy your parent POM with the updateReleaseInfo flag
> to true.
>
> Jeff
>
>
> On Jan 22, 2008 10:53 AM, Guillaume Lederrey <gu...@gmail.com>
> wrote:
>
> > Hello !
> >
> > By reading http://docs.codehaus.org/display/MAVEN/Release+Management I
> > have the impression that I should be able to use something like :
> >
> >        <parent>
> >                <groupId>myParentGroup</groupId>
> >                <artifactId>myParentArtifact</artifactId>
> >                <version>RELEASE</version>
> >        </parent>
> >
> > It doesnt work:
> >
> > [INFO] Failed to resolve artifact.
> >
> > GroupId: myParentGroup
> > ArtifactId: myParentArtifact
> > Version: RELEASE
> >
> > Reason: Unable to determine the release version
> >
> >  myParentGroup:myParentArtifact:pom:RELEASE
> >
> > If I have a look at the related maven-metadata in my maven repository,
> > I dont see a <release/> tag nor a <latest/>, so I guess I have a
> > problem in my release process.
> >
> >  <groupId>myParentGroup</groupId>
> >  <artifactId>myParentArtifact</artifactId>
> >  <version>0.1.1</version>
> >  <versioning>
> >    <versions>
> >      <version>0.1.1</version>
> >      <version>0.1.2</version>
> >      <version>0.1.3</version>
> >      <version>0.1.4</version>
> >      <version>0.1.6</version>
> >    </versions>
> >    <lastUpdated>20080114133145</lastUpdated>
> >  </versioning>
> >
> > I am a bit lost, where should I be looking ? I am using Maven 2.0.7,
> > is it sufficient for these functionalities ? Should I upgrade Maven ?
> >
> > Thanks for your help !
> > </metadata>
> >
> > --
> > Jabber : gehel@amessage.ch
> > Skype : Guillaume.Lederrey
> > Projects :
> > * http://rwanda.wordpress.com/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> > For additional commands, e-mail: users-help@maven.apache.org
> >
> >
>
>
> --
> La mélancolie c'est communiste
> Tout le monde y a droit de temps en temps
> La mélancolie n'est pas capitaliste
> C'est même gratuit pour les perdants
> La mélancolie c'est pacifiste
> On ne lui rentre jamais dedans
> La mélancolie oh tu sais ça existe
> Elle se prend même avec des gants
> La mélancolie c'est pour les syndicalistes
> Il faut juste sa carte de permanent
>
> Miossec (2006)
>
> http://www.jeffmaury.com
> http://riadiscuss.jeffmaury.com
>


-- 
Jabber : gehel@amessage.ch
Skype : Guillaume.Lederrey
Projects :
* http://rwanda.wordpress.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Versionning of parent pom

Posted by Jeff MAURY <je...@jeffmaury.com>.
You must install or deploy your parent POM with the updateReleaseInfo flag
to true.

Jeff


On Jan 22, 2008 10:53 AM, Guillaume Lederrey <gu...@gmail.com>
wrote:

> Hello !
>
> By reading http://docs.codehaus.org/display/MAVEN/Release+Management I
> have the impression that I should be able to use something like :
>
>        <parent>
>                <groupId>myParentGroup</groupId>
>                <artifactId>myParentArtifact</artifactId>
>                <version>RELEASE</version>
>        </parent>
>
> It doesnt work:
>
> [INFO] Failed to resolve artifact.
>
> GroupId: myParentGroup
> ArtifactId: myParentArtifact
> Version: RELEASE
>
> Reason: Unable to determine the release version
>
>  myParentGroup:myParentArtifact:pom:RELEASE
>
> If I have a look at the related maven-metadata in my maven repository,
> I dont see a <release/> tag nor a <latest/>, so I guess I have a
> problem in my release process.
>
>  <groupId>myParentGroup</groupId>
>  <artifactId>myParentArtifact</artifactId>
>  <version>0.1.1</version>
>  <versioning>
>    <versions>
>      <version>0.1.1</version>
>      <version>0.1.2</version>
>      <version>0.1.3</version>
>      <version>0.1.4</version>
>      <version>0.1.6</version>
>    </versions>
>    <lastUpdated>20080114133145</lastUpdated>
>  </versioning>
>
> I am a bit lost, where should I be looking ? I am using Maven 2.0.7,
> is it sufficient for these functionalities ? Should I upgrade Maven ?
>
> Thanks for your help !
> </metadata>
>
> --
> Jabber : gehel@amessage.ch
> Skype : Guillaume.Lederrey
> Projects :
> * http://rwanda.wordpress.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
La mélancolie c'est communiste
Tout le monde y a droit de temps en temps
La mélancolie n'est pas capitaliste
C'est même gratuit pour les perdants
La mélancolie c'est pacifiste
On ne lui rentre jamais dedans
La mélancolie oh tu sais ça existe
Elle se prend même avec des gants
La mélancolie c'est pour les syndicalistes
Il faut juste sa carte de permanent

Miossec (2006)

http://www.jeffmaury.com
http://riadiscuss.jeffmaury.com