[ https://issues.apache.org/jira/browse/MNG-5885?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15063211#comment-15063211 ]
Christian Schulte commented on MNG-5885: ---------------------------------------- If someone tells Maven to execute 'compile package', it should do just that. Garbage in -> garbage out, IMHO. > Optimize execution when phases of same lifecycle are called > ----------------------------------------------------------- > > Key: MNG-5885 > URL: https://issues.apache.org/jira/browse/MNG-5885 > Project: Maven > Issue Type: Sub-task > Components: Plugins and Lifecycle > Affects Versions: 3.3.3 > Reporter: Robert Scholte > Fix For: 3.x / Backlog > > > In case someone calls {{compile package}} there's no need for the separate > {{compile}} call. Now the lifecycle is executed twice: once until {{compile}} > and once again until {{package}}. > Note: {{package compile}} is weird due to its order, but should not be > optimized. {{compile resources:copy-resources package}} is a bit complicated. > Ideally this should call all phases up until {{compile}}, followed by > {{resources:copy-resources}}, followed by the {{process-classes}} to > {{package}} phases. -- This message was sent by Atlassian JIRA (v6.3.4#6332)