Hi Tobias, Thanks for the tip. I have a different set of repositories for each of my projects so i have decided to use the below configuration for each of the repositories.
<snapshots> <enabled>false</enabled> <updatePolicy>never<updatePolicy> </snapshots> I have just checked now, maven is downloading only the ones which were missed ( when i aborted the download) , so its working fine. I will wait till all the downloads are finished and will try it all over again and see if maven doesn't start downloading all over again. If not i will reply to this post. Thanks again both of you in helping me out. Cheers, Goutham Rao Tobias Gierke-2 wrote: > > Hi, >> Thanks Tommy, >> >> Actually i didn't state the complete problem before( sorry my fault).. >> >> if i stop maven from updating in between ( CTRL + C and terminate all >> batch >> jobs) and now if i try the same commands with the offline option , it >> says >> that it cannot find some artifacts ( probably the ones i stopped from >> downloading before). >> >> Is there anyway of getting around this problem. >> > You can specify update policies (like 'always' , 'never' , 'daily' etc. > ) for each repository in > > - your local settings.xml file (on Unix it's ~/.m2/settings.xml) > - your global settings.xml ( ${MAVEN_INSTALL_DIR}/conf/settings.xml ) > - your pom.xml file > > Just add the appropriate <repository/> and <pluginRepository/> sections > and you're good to go. The repository ID 'central' is special because it > is the 'default' repository , setting an update policy for it should > prevent most update requests. Unfortunately , some pom.xml files contain > <repository/> sections themselves - don't know how/if you can override > these as well. > > Regards, > > Tobias >> Best Regards, >> Goutham Rao >> >> Tommy Knowlton wrote: >> >>> try using the -o (offline mode) option for the mvn command. >>> >>> Hope that helps. >>> -- >>> TK >>> >>> On Aug 18, 2008, at 2:52 PM, goutham wrote: >>> >>> >>>> Hello Good Evening, >>>> >>>> I have a small but seriously irritating problem here :) >>>> >>>> Whenever i run a maven command such as mvn install or mvn site, it >>>> begins by >>>> looking up the remote repositories for any updates and this is >>>> taking a hell >>>> lot of time. >>>> >>>> I now have almost 3 to 4 version of each jar file in my repository. >>>> >>>> After a lot of googling and a red eye i have posted this question >>>> here. >>>> >>>> Please can some one guide in solving this. >>>> >>>> Best Regards, >>>> Goutham >>>> -- >>>> View this message in context: >>>> http://www.nabble.com/need-to-stop-maven-from-looking-for-updates-tp19039773p19039773.html >>>> Sent from the Maven - Users mailing list archive at Nabble.com. >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>>> For additional commands, e-mail: [EMAIL PROTECTED] >>>> >>>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> >> > > > -- View this message in context: http://www.nabble.com/need-to-stop-maven-from-looking-for-updates-tp19039773p19041467.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]