Now all is clear, thank you very much. My understanding was that maven gets the latest version but I didn't realize that that version must contain the SNAPSHOT keyword in the artifactId name. I don't want to use spring-core SNAPSHOT, I am just learning maven going through the very good book "A developer's Notebook". However that point should be better explained as you have just explained me. Thank again.
Cheers,
Gianfranco

----Original Message Follows----
From: Arik Kfir <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" <[email protected]>
To: Maven Users List <[email protected]>
Subject: Re: SNAPSHOT Dependency not working for me
Date: Mon, 17 Oct 2005 20:11:06 +0200

When you specify that you depend on a snapshot version - those that
publish the dependency must publish a snapshot version of it.

So if I publish a project named "arik", you will see several versions
of my project at the repository:

arik-0.1-SNAPSHOT.jar -> published while I'm developing the 0.1 version
arik-0.1.jar -> published when I *finish* developing 0.1 and releasing
it to the public
arik-0.2-SNAPSHOT.jar -> published when I work on the 0.2 version
.
.
.

Back to your question: if you look at the repository
(http://www.ibiblio.org/maven2/springframework/spring-core/) you will
see that the spring guys have not published snapshots of 1.1.4 -
probably because 1.1.4 has been released and there's no point
releasing a snapshot for it.

There is also no general SNAPSHOT version there
(spring-core-SNAPSHOT.jar) - simply because the Spring guys haven't
published one. Check with the spring guys if they have setup a
different repository for snapshot releases (Apache, for instance, have
a seperate snapshots repository - not ibiblio).

May I ask why you want to use the core-SNAPSHOT version of spring?


On 10/17/05, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
> Hello Arik, Thanks for your answer. Here is an example of dependency I want
> use, but I don't think it's related to the specific dependency because I
> have tried with many and got always same result. Maybe it's the way I use
> the SNAPSHOT keyword.
>
> <dependencies>
>   <dependency>
>     <groupId>springframework</groupId>
>     <artifactId>spring-core</artifactId>
>     <version>1.1.4-SNAPSHOT</version>
>     <type>jar</type>
>   </dependency>
> </dependencies>
>
> ----Original Message Follows----
> From: Arik Kfir <[EMAIL PROTECTED]>
> Reply-To: "Maven Users List" <[email protected]>
> To: Maven Users List <[email protected]>
> Subject: Re: SNAPSHOT Dependency not working for me
> Date: Mon, 17 Oct 2005 17:05:36 +0200
>
> Could you post the <dependency> you're declaring?
>
> On 10/17/05, Gianfranco Oldani <[EMAIL PROTECTED]> wrote:
>  > Hello,
>  > I try to use the SNAPSHOT keyword in a dependeny but I get always an
> errop
> > message. Maven try to search for an artifact with "SNAPSHOT" in the name > > e.g. artifactId-1.2.7-SNAPSHOT.jar and obviously cannot be found. I use
>  > maven 1.1-beta-2
>  >
>  > Thanks for help
>  >
>  > Gianfranco
>  >
>  > _________________________________________________________________
>  > Surlignez tout ce qui vous intéresse en surfant et visualisez vos
>  > recherches! http://toolbar.fr.msn.ch?DI=1057&XAPID=2083
>  >
>  >
>  > ---------------------------------------------------------------------
>  > 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]
>
> _________________________________________________________________
> Surlignez tout ce qui vous intéresse en surfant et visualisez vos
> recherches! http://toolbar.fr.msn.ch?DI=1057&XAPID=2083
>
>
> ---------------------------------------------------------------------
> 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]

_________________________________________________________________
Mettez- vous à la recherche! Mais pas trop sérieusement quand même! http://search.fr.msn.ch/


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

Reply via email to