Quick hit: Take Maven offline in NetBeans
I use the Maven plugin to NetBeans and once in awhile the plugin gets hung up on trying to download an updated version of a jar that I’ve installed locally and that it would have no hope of ever finding online. To get around that I’ve always run mvn install -o (or –offline) from the command line; this forces Maven to stop searching for updates to the jars. I found a blog post detailing how to enable that same setting for the Maven plugin.
In short, go to Tools->Options (or Netbeans->Preferences on Mac), then choose Miscellaneous, and then choose Maven. You can enter command line arguments within the Global Execution Options. See the following screenshot: