You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Jörn Gebhardt <Jo...@ptv.de> on 2004/02/20 09:34:40 UTC

SNAPSHOT versions

Hi,

I have a question concerning SNAPSHOT versions:

Imagine you have an project A that produces the artifact
"example-1.0-SNAPSHOT.jar" and a project B that uses this artifact. Now you
are modifying and building project A locally on your computer, i.e. your
local repository version of example-1.0-SNAPSHOT.jar is newer than the one
on the central repository.

However, when you are building project B, Maven resolves the SNAPSHOT
dependency and overrides your newer local version of the jar with the older
one from the central repository.

Is there a way to tell Maven that it should only download the SNAPSHOT
version from the central repository if and only if the creation date of
central version is newer than that of the local version? Or does there exist
another best practice how to use SNAPSHOT dependencies when you are
developing projects that depend on each other?

Thanks in advance,
Joern