提交 1bbab442 编写于 作者: K kohsuke

AbortException is expected, so no need to report a stack trace.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@6783 71c3de6d-444a-0410-be80-ed276b4c234a
上级 43a502d9
......@@ -299,6 +299,10 @@ public final class MavenModuleSetBuild extends AbstractBuild<MavenModuleSet,Mave
List<PomInfo> poms;
try {
poms = project.getModuleRoot().act(new PomParser(listener,project.getRootPOM(),project.getProfiles()));
} catch (IOException e) {
if (e.getCause() instanceof AbortException)
throw (AbortException) e.getCause();
throw e;
} catch (MavenExecutionException e) {
// Maven failed to parse POM
e.getCause().printStackTrace(listener.error("Failed to parse POM"));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册