Hi Lukas,
I had the same problem as Stefan ( I am a maven beginner also) and get the same explanation as you give. The fact is that I was expecting the same behavior as Stefan and maybe that can be a possible enhancement to put on the strack? Maybe I miss something but I don't see why it will not be possible.
Regards.
Gianfranco Oldani

----Original Message Follows----
From: Lukas Theussl <[EMAIL PROTECTED]>
Reply-To: "Maven Users List" <[email protected]>
To: Maven Users List <[email protected]>
Subject: Re: keyword "SNAPSHOT" in depedency version is ignored
Date: Thu, 27 Oct 2005 21:11:08 +0000

This is a misunderstanding of the SNAPSHOT functionality, maven does _not_ replace SNAPSHOT with the latest available version of a project.

Using a SNAPSHOT dependency still assumes that the project that you depend upon has actually published a SNAPSHOT. This is not the case for commons-logging.

See
http://maven.apache.org/maven-1.x/using/managing-dependencies.html#Using_SNAPSHOT_Dependencies

Regards,
Lukas



Dr. Stefan Reisner wrote:
I have created the following dependency in my maven project:

    <dependency>
      <groupId>commons-logging</groupId>
      <artifactId>commons-logging</artifactId>
      <version>SNAPSHOT</version>
    </dependency>

This results in the following behaviour being logged on the console when
invoking maven:

D:\workspace\de.syngenio.kompass.kik>maven
 __  __
|  \/  |__ _Apache__ ___
| |\/| / _` \ V / -_) ' \  ~ intelligent projects ~
|_|  |_\__,_|\_/\___|_||_|  v. 1.0.2

Attempting to download commons-logging-SNAPSHOT.jar.
WARNING: Failed to download commons-logging-SNAPSHOT.jar.

My expectation was that maven would replace SNAPSHOT (or for that any
version value in which "SNAPSHOT" occurs as a substring) by the most current
version available in the repository. What is going wrong here?

I should add that I'm new to maven, so it's probably something stupid
simple.

Best regards,
Dr. Stefan Reisner



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

_________________________________________________________________
Éradiquez enfin les fenêtres intempestives et surfez en toute tranquilité!!! http://toolbar.fr.msn.ch?DI=1057&XAPID=2083


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

Reply via email to