diff --git a/core/src/main/java/hudson/maven/MavenBuild.java b/core/src/main/java/hudson/maven/MavenBuild.java index 73feed057d..f1e796994c 100644 --- a/core/src/main/java/hudson/maven/MavenBuild.java +++ b/core/src/main/java/hudson/maven/MavenBuild.java @@ -283,12 +283,12 @@ public class MavenBuild extends AbstractBuild { protected void abortIfNotStarted() { if(hasntStartedYet()) { run(new Runner() { - public Result run(BuildListener listener) throws Exception, RunnerAbortedException { + public Result run(BuildListener listener) { listener.getLogger().println("Build failed before it gets to this module"); return Result.ABORTED; } - public void post(BuildListener listener) throws Exception { + public void post(BuildListener listener) { } }); }