[ https://issues.apache.org/jira/browse/MNG-6934?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17721403#comment-17721403 ]
Tamas Cservenak commented on MNG-6934: -------------------------------------- Maven Plugins can fail for multitude of reasons: from bad plugin config, broken env (ie. disk permissions or bad server config) to actual plugin-bug. If one could programatically determine with 100% , it is a plugin bug, and nothing more, upgrade *could* help, {*}if bug was reported, fixed, new version released with fix{*}. "Upgrade will help" is just shooting in dark. In all other failures this is just noise, and may mislead the user. What is user do upgrades, but ends up with same error (as it is config, env, whatever)? What to do with Enforcer, that throws MojoExecutionException when a rule fail? Are we sure all the plugins out there properly handle distinction between MojoExecutionEx and MojoFailureEx? What to do with them? Who will make sure that exceptions are correctly used? IMHO there is no viable and correct way, to cover all these cases in future proof way. So, my biggest problems here are: * no viable and future proof way to cover all cases * we are not sure are exceptions are properly used (think 3rd party plugins, if we could be 100% sure for ASF plugins. But am not) * is shooting in dark: we have no idea is bug (if it is a bug) we caught, known and would upgrade help or not > Suggest plugin upgrade in case of failure > ----------------------------------------- > > Key: MNG-6934 > URL: https://issues.apache.org/jira/browse/MNG-6934 > Project: Maven > Issue Type: Improvement > Reporter: Robert Scholte > Priority: Major > > In case a plugin fails, Maven should look if there is a more recent version. > It is considered the best practice to verify the most recent version first > before issueing a but, as it might already be solved. > The be clear: if the most recent plugin is used, this message should not be > shown. > Make use of the metadata to get the most recent version. -- This message was sent by Atlassian Jira (v8.20.10#820010)