Maybe give us some precisions about which plugin you think is here that maven don't find. Show us your help:effective-settings output. Maybe you're not looking at the right local repository, couln't it be?
Cheers 2009/1/19 jonathan14 <[email protected]> > > Strub > > > Thanks for that, Im still learning Maven commands etc.. > Maven does report that its only using local artifacts when I run with > switch > but annoyingly I keep getting build errors because it cant seem to find > plgunis etc that are actually there!! something wrong with my config. I > know. > > > Jon > > > > > struberg wrote: > > > > mvn -o > > don't work? > > > > LieGrue, > > strub > > > > --- jonathan14 <[email protected]> schrieb am Mo, 19.1.2009: > > > >> Von: jonathan14 <[email protected]> > >> Betreff: Re: AW: how to avoid build error if remote repository is nto > >> available? > >> An: [email protected] > >> Datum: Montag, 19. Januar 2009, 12:20 > >> Hi strub, > >> > >> > >> Thanks for your reply. > >> > >> Apologies I forgot to clarify that my 'remote > >> repository' is indeed an > >> instance of Artifactory but running in a managed service > >> machine - I dont > >> have a server available on my local/corporate network to > >> install an instance > >> of Artifactory unfortunately. > >> > >> Whats annoying is that Maven wont build my war since it > >> complains it cant > >> get the war plugin from my remote artifactory - since this > >> network > >> connection is down at present - but I have the plugin in my > >> local machine > >> $M2_HOME. So, my POM is missing some configuration I feel. > >> Maven can > >> definately access my local $M2_HOME since it installs my > >> project artifacts > >> there after a successful build. > >> > >> Thanks > >> Jon > >> > >> > >> > >> > >> > >> struberg wrote: > >> > > >> >> 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] > >> > > >> > > >> > > >> > >> -- > >> View this message in context: > >> > http://www.nabble.com/how-to-avoid-build-error-if-remote-repository-is-nto-available--tp21540454p21541153.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/how-to-avoid-build-error-if-remote-repository-is-nto-available--tp21540454p21542353.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] > > -- Baptiste <Batmat> MATHUS - http://batmat.net Sauvez un arbre, Mangez un castor !
