apache / apache/maven

[MNG-5885] Optimize execution when phases of same lifecycle are called

Open
#7,772 4 comments 0 reactions 0 assignees View on GitHub
priority:major
Dominant language
Java
Stars
5.3k
Forks
3.1k
Avg merge
20h 42m
Merged PRs (30d)
297

Description

**[Robert Scholte](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=rfscholte)** opened **[MNG-5885](https://issues.apache.org/jira/browse/MNG-5885?redirect=false)** and commented

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.

---

**Affects:** 3.3.3

This issue is a sub-task of [MNG-5665](https://issues.apache.org/jira/browse/MNG-5665)

2 votes, 8 watchers

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.