I guess I read and replied too fast :-/. I'm not sure I understand your question. You would like maven to automatically download new versions if there is one in your deployment repository?
If so, then sure, there is. Just put a dependency with "-SNAPSHOT" version and that will be the default behaviour. If you're not using SNAPSHOT, then it's not possible by default. Maven will always use the local released version without trying to look for new one (since it's a release and it should not change). Let us see a bit how you handle versions & dependencies in your poms so that we can be more precise if you will. Cheers. 2008/12/23 Subramanian, N.Venkata <[email protected]> > Pardon me if this is a basic question. > > > > We have two build setups > > 0) 'mvn install' - which does the compilation and installs in > the local repo. > > 1) 'mvn deploy' - If the mvn install is successful, based on > the 'mvn install' source code 'mvn deploy' will be kicked off > > > > While mvn deploy is in progress, mvn install will be kicked > off to the latest changes. We have this parallel setup to avoid delay. > > w.r.t source code change 'mvn deploy' is always behind to 'mvn > install'. > > > > Question: > > Is there a possibility that during 'mvn install' - it picks up > the dependent deployed artifact instead of local repo artifact. (based > on time stamp it could be that deployed artifact is having new time > stamp but w.r.t source code change local repo is latest than deployed > artifact) > > > > If this is possible, how to overcome this problem. > > > > Regards > > -Venkat > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
