From b89b4ddedf06dc4ea019c5e44dbc10884f5367d5 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Thu, 6 Dec 2012 09:01:47 -0800 Subject: [PATCH] if there's only one installation, better to resolve to that one. After all, that's the installation the user is most likely going to choose, and if there's only one installation. Plus when there's only one installation, there's no drop-down to select the Maven installation in the config UI, so the user is asked to do a rather unnatural "open config page" > "just click save" workflow. --- .../src/main/java/hudson/maven/MavenModuleSet.java | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java b/maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java index c9d4b1c2cb..1cd6e3036b 100644 --- a/maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java +++ b/maven-plugin/src/main/java/hudson/maven/MavenModuleSet.java @@ -373,7 +373,7 @@ public class MavenModuleSet extends AbstractMavenProject