[ http://jira.codehaus.org/browse/MRELEASE-515?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=207938#action_207938 ]
Olivier Lamy commented on MRELEASE-515: --------------------------------------- IMHO not issue to be 2.0.9 prerequisites. (some plugins have this) The last maven 2.x version is 2.2.1. Others ? > release:prepare eats the root cause of the exception > ---------------------------------------------------- > > Key: MRELEASE-515 > URL: http://jira.codehaus.org/browse/MRELEASE-515 > Project: Maven 2.x Release Plugin > Issue Type: Bug > Affects Versions: 2.0-beta-9 > Reporter: Kohsuke Kawaguchi > > The PrepareReleaseMojo.execute() method contains the following statement: > {code:java} > try > { > releaseManager.prepare( config, getReleaseEnvironment(), reactorProjects, > resume, dryRun ); > } > catch ( ReleaseExecutionException e ) > { > throw new MojoExecutionException( e.getMessage(), e ); > } > catch ( ReleaseFailureException e ) > { > throw new MojoFailureException( e.getMessage() ); > } > {code} > As you can see, the stack trace and nested exception of the > ReleaseFailureException is lost, which makes it unnecessarily hard to > diagnose the root cause of problems like MRELEASE-332. The code should be > modified to something like: > {code} > throw (MojoFailureException)new MojoFailureException( e.getMessage() > ).initCause(e); > {code} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira