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/23 16:13:32 UTC

Dependency range and SNAPSHOT

I'm trying to understand how version range work. I have a parent pom
that define version in its dependencyManagement section. For one of my
project, it defines it as : [0.1.2,)

When doing a "mvn dependency:resolve", I see that it is resolved to
0.1.3-SNAPSHOT. I agree that 0.1.3-SNAPSHOT is newer than 0.1.2, but
when reading http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict+Resolution
I had the impression that ranges should not resolve to SNAPSHOT
dependencies.

Did I misunderstood the documentation ? Or did I do something wrong ?
Where should I be looking ?

Thanks !

  MrG
-- 
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: Dependency range and SNAPSHOT

Posted by Guillaume Lederrey <gu...@gmail.com>.
Thanks a lot ! I should have checked JIRA myself, sorry.

On 23/01/2008, Dave Hoffer <DH...@xrite.com> wrote:
> Guillaume,
>
> You are right, this is a bug.  Version range should not resolve to a
> snapshot unless included in the range specification.  See MNG-3092,
> MNG-3351, MNG-3372, MNG-2994, MRELEASE-262, possibly more...
>
> There is work going on to resolve these, please check the jira's and
> help if you can.
>
> Regards,
> Dave
>
> -----Original Message-----
> From: Guillaume Lederrey [mailto:guillaume.lederrey@gmail.com]
> Sent: Wednesday, January 23, 2008 10:14 AM
> To: Maven Users List
> Subject: Dependency range and SNAPSHOT
>
> I'm trying to understand how version range work. I have a parent pom
> that define version in its dependencyManagement section. For one of my
> project, it defines it as : [0.1.2,)
>
> When doing a "mvn dependency:resolve", I see that it is resolved to
> 0.1.3-SNAPSHOT. I agree that 0.1.3-SNAPSHOT is newer than 0.1.2, but
> when reading
> http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict
> +Resolution
> I had the impression that ranges should not resolve to SNAPSHOT
> dependencies.
>
> Did I misunderstood the documentation ? Or did I do something wrong ?
> Where should I be looking ?
>
> Thanks !
>
>   MrG
> --
> 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
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>


-- 
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: Dependency range and SNAPSHOT

Posted by Dave Hoffer <DH...@xrite.com>.
Guillaume,

You are right, this is a bug.  Version range should not resolve to a
snapshot unless included in the range specification.  See MNG-3092,
MNG-3351, MNG-3372, MNG-2994, MRELEASE-262, possibly more...  

There is work going on to resolve these, please check the jira's and
help if you can.

Regards,
Dave

-----Original Message-----
From: Guillaume Lederrey [mailto:guillaume.lederrey@gmail.com] 
Sent: Wednesday, January 23, 2008 10:14 AM
To: Maven Users List
Subject: Dependency range and SNAPSHOT

I'm trying to understand how version range work. I have a parent pom
that define version in its dependencyManagement section. For one of my
project, it defines it as : [0.1.2,)

When doing a "mvn dependency:resolve", I see that it is resolved to
0.1.3-SNAPSHOT. I agree that 0.1.3-SNAPSHOT is newer than 0.1.2, but
when reading
http://docs.codehaus.org/display/MAVEN/Dependency+Mediation+and+Conflict
+Resolution
I had the impression that ranges should not resolve to SNAPSHOT
dependencies.

Did I misunderstood the documentation ? Or did I do something wrong ?
Where should I be looking ?

Thanks !

  MrG
-- 
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


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