> Occassionally our remote - "central" - repository is unavailable

Do you already use some kind of caching proxy like e.g. Archiva, Artifactory, 
maven-proxy or Nexus?


If you are in a company I would _highly_ recommend setting up such a proxy!
1.) no complaining about public repos being offline anymore
2.) you can backup the whole proxy cache and so your builds are also safe in 
the future.
3.) It will increase build times for your colleagues greatly.
4.) helps to relieve the central repo if not everyone is stressing the servers!

LieGrue,
strub

--- jonathan14 <[email protected]> schrieb am Mo, 19.1.2009:
> Von: jonathan14 <[email protected]>
> Betreff: how to avoid build error if remote repository is nto available?
> An: [email protected]
> Datum: Montag, 19. Januar 2009, 11:38
> Hello
> 
> 
> Occassionally our remote - "central" - repository
> is unavailable, and when
> this occurs a local build fails because my local Maven
> cannot get the remote
> artifacts - whether they be plugins or my project
> components
> 
> ie.
> [WARNING] repository metadata for: 'artifact
> org.apache.maven.plugins:maven-war-plugin' could not be
> retrieved from
> repository: central due to an error: Error transferring
> file
> 
> 
> Ive had a look at the onlnie documentation and a coupld of
> guides but cant
> figure out how to configure my project POM so that Maven
> can still build if
> it can find all the artifacts it needs in the local
> repository. I know the
> maven-war-plugin exists locally since I can see it in the
> file system.
> 
> Further to this, can anyone tell me how in instruct Maven
> not to check
> remote repositories if it can find the artifact in the
> local one?
> 
> Do I just make my local repository my default one?
> 
> 
> Thanks
> Jon 
> 
> 
> -- 
> View this message in context:
> http://www.nabble.com/how-to-avoid-build-error-if-remote-repository-is-nto-available--tp21540454p21540454.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]

Reply via email to