To use Maven in an "offline" mode, first fetch all dependencies you need.
To get the dependencies and overwrite the ones where the file timestamp is newer (applies to snapshots and releases)
mvn dependency:go-offline -DoverWriteIfNewer=true
When the dependency downloads complete, use the -o parameter to tell maven to work in offline mode
mvn -o <normal mvn parameters here>