This commit is contained in:
Phillip Webb
2013-11-15 23:37:38 -08:00
parent 127da15c3c
commit 883fd9162f
22 changed files with 72 additions and 88 deletions

View File

@@ -44,7 +44,7 @@ import org.springframework.boot.loader.tools.MainClassFinder;
* @author Phillip Webb
*/
@Mojo(name = "run", requiresProject = true, defaultPhase = LifecyclePhase.VALIDATE, requiresDependencyResolution = ResolutionScope.TEST)
@Execute(phase=LifecyclePhase.TEST_COMPILE)
@Execute(phase = LifecyclePhase.TEST_COMPILE)
public class RunMojo extends AbstractMojo {
/**
@@ -179,7 +179,7 @@ public class RunMojo extends AbstractMojo {
hasNonDaemonThreads = true;
thread.join();
}
catch (InterruptedException e) {
catch (InterruptedException ex) {
Thread.currentThread().interrupt();
}
}
@@ -249,8 +249,8 @@ public class RunMojo extends AbstractMojo {
+ "main method with appropriate signature.", ex);
thread.getThreadGroup().uncaughtException(thread, wrappedEx);
}
catch (Exception e) {
thread.getThreadGroup().uncaughtException(thread, e);
catch (Exception ex) {
thread.getThreadGroup().uncaughtException(thread, ex);
}
}
}