On 8/25/06, Andreas Guther <[EMAIL PROTECTED]> wrote:
Question: How can I get Maven to deploy version-less SNAPSHOT files to
our SNAPSHOT repository?
Background:
It appears to me as if the "mvn deploy" command on a SNAPSHOT version
does only deploy numbered snapshot files, but not unnumbered ones. The
"mvn install" command in contrary puts an unnumbered SNAPSHOT file in my
local repository.
- I get i18n-4.0.0-SNAPSHOT.jar in my local repository with mvn install
- I get i18n-4.0.0-20060811.001428-3.jar in my configured SNAPSHOT
repository
Maven takes care of all this for you. You do not need to care that
there is no -SNAPSHOT on the remote repository (which is not needed
anyway)
If you check out the meta data it lists all the versions and what the
correct latest version is.
For an artifact my.group:artifactId which is laid out on the file system as:
http://NUCLEUS/path/to/repo/group/my/atifactId
You will see the following:
- <version directories> e.g. 4.0.0-SNAPSHOT
- maven-metadata.xml
- maven-metadata.xml.md5
- maven-metadata.xml.sha1
In maven-metadata is all the information maven needs in order to
download the latest snapshot version and to install it into your local
repository as -SNAPSHOT.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]