mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
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
This commit is contained in:
1 parent
43a502d977
commit
1bbab442c6
1 file changed
+4
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user