Hey,
I realized when writing the reply that the documentation is somehow
misleading (at least if you don't read it carefully), we will rewrite
the corresponding section to make it clearer.
If you think that the functionality that you expected should be
implemented, you could file a feature request on JIRA [1]. However,
personally, I am not sure if I would want such a functionality. Having
the latest releases downloaded automatically is not always what you want
and could even be dangerous (what if the dependency project publishes a
backwards-incompatible release?).
Cheers,
Lukas
[1] http://jira.codehaus.org/browse/MAVEN (you have to open an account
if you want to file issues)
Gianfranco Oldani wrote:
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]