You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Herve Boutemy (Jira)" <ji...@apache.org> on 2022/03/14 07:37:00 UTC

[jira] [Comment Edited] (MNG-7430) mark MojoExecutionException as deprecated

    [ https://issues.apache.org/jira/browse/MNG-7430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17506037#comment-17506037 ] 

Herve Boutemy edited comment on MNG-7430 at 3/14/22, 7:36 AM:
--------------------------------------------------------------

yes, particularly once the message "[INFO] BUILD ERROR" from Maven 2 was replaced with the same "[INFO] BUILD FAILURE" in Maven 3 as the other exception

I have one question: did anybody extract some facts (statistics) on which plugin uses which exception? Of course, this can't be exaustive given the number of community plugins, but I think having some facts could help manage the simplification in the best way for plugin writers


was (Author: hboutemy):
yes, particularly once the message "[INFO] BUILD ERROR" was replaced with the same "[INFO] BUILD FAILURE" as the other exception
I have one question: did anybody extract some facts (statistics) on which plugin uses which exception? Of course, this can't be exaustive given the number of community plugins, but I think having some facts could help manage the simplification in the best way for plugin writers

> mark MojoExecutionException as deprecated
> -----------------------------------------
>
>                 Key: MNG-7430
>                 URL: https://issues.apache.org/jira/browse/MNG-7430
>             Project: Maven
>          Issue Type: Task
>          Components: Core
>            Reporter: Olivier Lamy
>            Priority: Major
>
> since the start of Maven 3.x there is no more difference in the build result/output between MojoFailureException and MojoExecutionException.
> Even the javadoc is wrong as it says 
> {quote}Throwing this exception causes a "BUILD ERROR" message to be displayed.{quote}
>  https://github.com/apache/maven/blob/14ca7234380f81e54a5643082816048f3b6b67cf/maven-plugin-api/src/main/java/org/apache/maven/plugin/MojoExecutionException.java#L24
> which definitely never happen see sample here https://github.com/olamy/maven-exception-plugin
> we could mark it as deprecated for 3.9.x onward.
>  



--
This message was sent by Atlassian Jira
(v8.20.1#820001)