title: Spring Boot Maven build offline when machine has no internet connectivity
body: <p>I'm working on a Spring Boot project that uses Maven. The problem is that I need to build the application as a Jar on a machine that doesn't have internet connectivity.</p>
  
  <p>I have tried downloading all dependencies and copying across my .m2 folder from my Mac over to the machine with no network, but Maven still won't build the project, as it throws up an error such as this;</p>
  
  <pre><code>mvn -o package
  
  Non-resolveable parent POM for com.domain.visualisation: Cannot access central https://repo.maven.apache.org/maven2 in offline mode and the artifact org.springframework.boot:spring-boot-starter-parent:pom:2.0.4.RELEASE has not bee downloaded from it before.
  </code></pre>
  
  <p>Is there a way to get this working without internet connectivity?</p>