There might be situations where a Maven project needs to be built without access to the Internet. Let us see how Maven supports this, as well as the caveats.
mvn –o clean package
Observe that the build is completed successfully without any network connection.
go-offline goal of the Maven Dependency plugin downloads all the required dependencies and plugins for the project, based on the pom file. The
–o option tells Maven to work offline and not check ...