That's the "-o" CLI switch as "offline". There is also the "-h" CLI switch for "help". ;)
Thanks, ~t~ On Thu, Feb 3, 2011 at 10:51 PM, Steve Cohen <[email protected]> wrote: > I am being forced to use maven temporarily in a situation where Internet > access is disallowed. (Don't even ask). > > Amazingly by copying an entire local repository from another machine, I am > able to function most of the time. The one problem comes up when maven > wants to look at Maven Central for a file it won't find there. This file is > a POM for a third-party JAR that was imported into the repository. When run > from a machine that has Internet connectivity, it attempts to download this > non-existent POM, fails to find it, and lets me off with a warning. When > run from a machine that has no Internet connectivity the build fails with: > "connection refused". > > Is there a way to tell Maven to use only a local repository and never try to > connect to maven central? > > --------------------------------------------------------------------- > 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]
