String (String version) { if (StringUtil.compareVersionNumbers(version, "3.1") < 0 && StringUtil.compareVersionNumbers(version, "2") > 0) { return MavenProjectBundle.message("label.invalid.maven30"); } if (!MavenVersionSupportUtil.isMaven2PluginInstalled()) { return MavenProjectBundle.message("label.invalid.install.maven2plugin"); } if (MavenVersionSupportUtil.isMaven2PluginDisabled()) { return MavenProjectBundle.message("label.invalid.enable.maven2plugin"); } if (version == null) return MavenProjectBundle.message("label.invalid.maven.home.directory"); return MavenProjectBundle.message("label.invalid.maven.home.version", version); }