> -----Original Message----- > From: Flesner, Dan [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 27, 2004 9:21 PM > To: Maven Users List > Subject: snapshot dependencies > > > i'm confused by snapshot dependencies. when i do an > install-snapshot to > build the local dependencies i get the following in my local > repository: > > -rw-r--r-- 1 dflesner dev 12728 Apr 27 12:03 > smc-impl-20040427.190310.jar > -rw-r--r-- 1 dflesner dev 12728 Apr 27 12:16 > smc-impl-20040427.191611.jar > -rw-r--r-- 1 dflesner dev 12728 Apr 27 12:16 > smc-impl-SNAPSHOT.jar > > it appears that the -SNAPSHOT came from the remote repository and the > -2004XXX came from the local install-snapshot. which jar is > used locally > to compile with by other dependencies? why not just update the local > -SNAPSHOT and not the -2004XXX files? are the -2004XX files ever used > anywhere? now i have to periodically clean out my local repository of > all the -2004XXX versions when i run out of disk space. > > what is the best practices for using install/deploy snapshot, am i > missing something here? > Yes you are :)
http://maven.apache.org/reference/user-guide.html#Resolving_SNAPSHOT_Depende ncies In short: when you make a release of your project you should (at least it is highly recommended) replace snapshot dependencies with timestamped ones. This is simply because SNAPSHOT artifact can evolve after your release and you want to preserve the possibility of reproducing the release and (this is even more important) have well defined list of dependencies with which given version of your project is known to work with. Michal --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
