From 5b4785c6c7359f31ff3830126d53617f0bb97915 Mon Sep 17 00:00:00 2001 From: Elliotte Rusty Harold Date: Wed, 18 Jan 2017 09:47:29 -0500 Subject: [PATCH] remove warning about unable to check for latest version (#1176) --- .../maven/MavenAppEngineStandardWizardPage.java | 11 ----------- .../appengine/newproject/maven/messages.properties | 1 - 2 files changed, 12 deletions(-) diff --git a/plugins/com.google.cloud.tools.eclipse.appengine.newproject.maven/src/com/google/cloud/tools/eclipse/appengine/newproject/maven/MavenAppEngineStandardWizardPage.java b/plugins/com.google.cloud.tools.eclipse.appengine.newproject.maven/src/com/google/cloud/tools/eclipse/appengine/newproject/maven/MavenAppEngineStandardWizardPage.java index 0bbc6c4617..44cf27dc89 100644 --- a/plugins/com.google.cloud.tools.eclipse.appengine.newproject.maven/src/com/google/cloud/tools/eclipse/appengine/newproject/maven/MavenAppEngineStandardWizardPage.java +++ b/plugins/com.google.cloud.tools.eclipse.appengine.newproject.maven/src/com/google/cloud/tools/eclipse/appengine/newproject/maven/MavenAppEngineStandardWizardPage.java @@ -29,7 +29,6 @@ import java.nio.file.NotDirectoryException; import java.nio.file.Paths; import java.util.Collection; -import org.eclipse.aether.repository.RepositoryPolicy; import org.eclipse.core.resources.ResourcesPlugin; import org.eclipse.core.runtime.IPath; import org.eclipse.core.runtime.IStatus; @@ -40,7 +39,6 @@ import org.eclipse.jface.viewers.ISelectionChangedListener; import org.eclipse.jface.viewers.SelectionChangedEvent; import org.eclipse.jface.wizard.WizardPage; -import org.eclipse.m2e.core.MavenPlugin; import org.eclipse.swt.SWT; import org.eclipse.swt.events.ModifyEvent; import org.eclipse.swt.events.ModifyListener; @@ -285,19 +283,10 @@ private boolean validatePage() { if (!validateAppEngineProjectDetails()) { return false; } - checkMavenUpdateSettings(); return true; } - private void checkMavenUpdateSettings() { - String globalUpdatePolicy = MavenPlugin.getMavenConfiguration().getGlobalUpdatePolicy(); - if (!appEngineLibrariesSelectorGroup.getSelectedLibraries().isEmpty() - && RepositoryPolicy.UPDATE_POLICY_NEVER.equals(globalUpdatePolicy)) { - setMessage(Messages.getString("M2E_GLOBAL_UPDATES_PREVENT_CHECKS"), WARNING); //$NON-NLS-1$ - } - } - @VisibleForTesting static boolean validateLocation(String location, WizardPage page) { if (location.isEmpty()) { diff --git a/plugins/com.google.cloud.tools.eclipse.appengine.newproject.maven/src/com/google/cloud/tools/eclipse/appengine/newproject/maven/messages.properties b/plugins/com.google.cloud.tools.eclipse.appengine.newproject.maven/src/com/google/cloud/tools/eclipse/appengine/newproject/maven/messages.properties index 07578b2fc0..d11542f9d8 100644 --- a/plugins/com.google.cloud.tools.eclipse.appengine.newproject.maven/src/com/google/cloud/tools/eclipse/appengine/newproject/maven/messages.properties +++ b/plugins/com.google.cloud.tools.eclipse.appengine.newproject.maven/src/com/google/cloud/tools/eclipse/appengine/newproject/maven/messages.properties @@ -27,6 +27,5 @@ MAVEN_PROJECT_COORDINATES=Maven project coordinates GROUP_ID=Group ID: ARTIFACT_ID=Artifact ID: ARTIFACT_VERSION=Version: -M2E_GLOBAL_UPDATES_PREVENT_CHECKS=Maven settings prevent checking for later versions of selected libraries GROUP_ID_TOOLTIP=The Maven Group ID. Should be an alphanumeric path separated by periods. ARTIFACT_ID_TOOLTIP=The Maven Artifact ID. Should be an alphanumeric name separated by dashes.