Release is a specific version ie Apache log4j, latest release is
1.2.14, no matter how many times you download it, the source code and
binary jar for this release will be the same.

Snapshot is used for development ie Apache log4j, say their current
"working" version is 1.2.15-SNAPSHOT. So every day they are adding new
code and pushing out updates etc. Until 1.2.15 becomes final
(released), they will continue pushing out nightly builds which will
all be named 1.2.15-SNAPSHOT, and Maven will automatically download
the new SNAPSHOT every day (or when forced with -U).

So when you're working on code and not ready to release it as a
specific version, you must use x.y.z-SNAPSHOT versions. Then when
you're happy and want to release it, you change the version to x.y.z
and do a formal release. But once you've done a release, you CAN'T
change it -- any changes have to be released in another, later
version.

Wayne

On 7/26/07, Dmitry <[EMAIL PROTECTED]> wrote:
Could you please give the main differences between the following
depedencies:

 - Release and Snapshot

thanks,

DT,

www.ejinz.com

Search Engine



Maven differentiates between two kinds of dependencies:

 a.. Release. Released dependencies are artifacts downloaded to the local
maven repository only once - when maven detects that there is no such
artifact in the local repo.
 b.. Snapshot. Snapshot dependencies are downloaded to your local maven
repository every time maven detects there is a newer version in the remote
one.
Maven treats dependencies as snapshot when the version number ends
with -SNAPSHOT.

When you specify repositories for your project you specify if each
repository contains snapshot versions of artifacts and how often maven has
to check for newer version (always, daily, etc).



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

Reply via email to