The correct way to resolve plugins and dependencies explictly mentioned in your project is:
mvn dependency:go-offline
Documentation: https://maven.apache.org/plugins/maven-dependency-plugin/usage.html#dependency-go-offline