Maven battery life is invoked using mvn -o .
However, this may not be enough, because sometimes the current project refers to artifacts that are not yet present in the Maven local storage cache ( ~/.m2/repository ). An attempt to create this project offline will fail because the required dependencies are missing and cannot be downloaded.
So there is another useful goal:
mvn dependency:go-offline
This is a great team to launch before jumping on a plane, which will improve your chances of BUILD SUCCESS . See offline documentation for more information .
ctrueden Jan 14 '15 at 19:08 2015-01-14 19:08
source share