Joel Joel - 2 months ago 6x
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


Specify offline mode via -o/--offline:

mvn -o install

Maven book reference