Joel Joel - 3 months ago 12
Java Question

Is there a maven command line option for offline mode?

You can specify in your maven settings file that you want to run in offline mode, but is there an equivalent command line option?

I would imagine something like e.g.

mvn install -Dmaven.offline.true

Answer

Specify offline mode via -o/--offline:

mvn -o install

Maven book reference

Comments