mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-16 05:22:22 +00:00
if the maven home is incorrect, detect the problem more gracefully.
This commit is contained in:
1 parent
e73e870fdc
commit
86d4548398
2 files changed
+11
-2
No files matched your search
@@ -575,7 +575,7 @@ public class MavenModuleSetBuild extends AbstractMavenBuild<MavenModuleSet,Maven
|
||||
if(mvn==null)
|
||||
throw new AbortException("A Maven installation needs to be available for this project to be built.\n"+
|
||||
"Either your server has no Maven installations defined, or the requested Maven version does not exist.");
|
||||
|
||||
|
||||
mvn = mvn.forEnvironment(envVars).forNode(Computer.currentComputer().getNode(), listener);
|
||||
|
||||
MavenInformation mavenInformation = getModuleRoot().act( new MavenVersionCallable( mvn.getHome() ));
|
||||
|
||||
Reference in new issue
Block a user