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

Herve Boutemy edited comment on MNG-5987 at 6/3/23 7:17 AM:
------------------------------------------------------------

{quote}Order of declaration is really unreliable and complicated to understand 
when it comes to profiles and parents, and I'm not sure was ever really 
well-defined (or at least well-documented)
{quote}
it was documented and chosen that order of execution is not something you 
cannot count on: phases are ordered, mojos in a phase simply are not
and we never pushed this to making it random, which would have been one way to 
make people understand that order of execution in a phase is not expected to be 
controlled: that is the design (that so much people don't want to understand 
when we explain them again and again)
documenting the current algorithm is lost time since it is not expected to be 
reliable over time: it's "FYI", "currently", "may change over versions". But 
perhaps writing it once again saying we're documenting the ordering will help 
people stop complaining about the complexity


was (Author: hboutemy):
bq. Order of declaration is really unreliable and complicated to understand 
when it comes to profiles and parents, and I'm not sure was ever really 
well-defined (or at least well-documented)
it was documented and chosen that order of execution is not something you 
cannot count on: phases are ordered, mojos in a phase simply are not
and we never pushed this to making it random, whouch would have been one way to 
make people understand that order of execution in a phase is not expected to be 
controlled: that is the design (that so much people don't want to understand 
when we explain them again and again)
documenting the current algorithm is lost time since it is not expected to be 
reliable over time: it's "FYI", "currently", "may change over versions". But 
perhaps writing it once again saying we're documenting the ordering will help 
people stop complaining about the complexity

> Document the algorithm calculating the order of plugin executions inside a 
> phase.
> ---------------------------------------------------------------------------------
>
>                 Key: MNG-5987
>                 URL: https://issues.apache.org/jira/browse/MNG-5987
>             Project: Maven
>          Issue Type: Improvement
>          Components: Documentation:  General
>            Reporter: Christian Schulte
>            Priority: Critical
>
> Users continuously report issues regarding the order of plugin executions: 
> repeating that *"this order is not expected to be guaranteed inside a phase"* 
> is not convincing for them. (notice that perhaps telling that it *cannot* be 
> guaranteed nor really controlled may be more convincing...)
> The algorithm used to calculate the order of executions performed by Maven 
> needs to be documented:
>  - declaration order in the POM
>  - inheritance merging from parent POM,
>  - merging of profiles and other plugin containers,
>  - the order of executions of multiple executions in the same lifecycle phase,
>  - the sorting by plugin that happens when multiple goals are defined for the 
> same plugin,
>  etc.
> based on Model Building 
> [https://maven.apache.org/ref/current/maven-model-builder/] ...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to