* Set a bunch of preferences so that m2eclipse hopefully isn't doing a lot
* of time consuming stuff in the background.
*/
public static void mavenOffline() throws Error {
System.out.println("Pacifying m2eclipse...");
IEclipsePreferences m2EclipsePrefs = new InstanceScope().getNode("org.eclipse.m2e.core");
m2EclipsePrefs.putBoolean("eclipse.m2.offline", true);
m2EclipsePrefs.putBoolean("eclipse.m2.globalUpdatePolicy", false);
m2EclipsePrefs.putBoolean("eclipse.m2.updateIndexes", false);
try {
m2EclipsePrefs.flush();
}
catch (BackingStoreException e) {
throw new Error(e);
}