Hi Joern, I'm pretty happy switching maven in the offline mode when developing local SNAPSHOT's.
maven -o java:compile This forces maven to not download the SNAPSHOTS from the central repos. Maybe this helps you. Regards Toby > -----Original Message----- > From: J�rn Gebhardt [mailto:[EMAIL PROTECTED] > Sent: Friday, February 20, 2004 9:35 AM > To: [EMAIL PROTECTED] > Subject: 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
