[MNG-6319] Allow for building of the whole project multiple times (with different phases/goals/lifecycles) but with one command
- Dominant language
- Java
- Stars
- 5.3k
- Forks
- 3.1k
- Avg merge
- 20h 42m
- Merged PRs (30d)
- 297
Description
**[Daniel Cruver](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=ddcruver)** opened **[MNG-6319](https://issues.apache.org/jira/browse/MNG-6319?redirect=false)** and commented
Most of the use cases I can think of deal with the iterative process of development, make a change, clean all modules, install all modules etc
Regardless it could serve some usefulness in CI or release management regardless.
So say you wanted to clean all modules, you could do a mvn clean followed by a mvn install in a script or on the command line but what if you could just provided this in one command.
For example mvn `clean install,clean deploy` where it would actually clean and install all modules, then if that succeeded it would then clean and deploy all projects. Obviously there are some semantics that are unclear like if the second deploy could reuse the previous builds outputs (if clean wasn't done) etc.
Unfortunately I can see that the syntax might be confusing and consideration to how it would be escaped on different consoles/platforms might be troublesome. It might be just that we should stick to scripted process with separate executions of the maven binary if we really need this functionality.
---
This issue is a sub-task of [MNG-5665](https://issues.apache.org/jira/browse/MNG-5665)
Contributor guide
Research direction
Start by reviewing MNG-6319 and its parent MNG-5665, then examine how Maven currently parses and executes command-line goals and lifecycles. Clarify the multi-phase syntax, execution semantics, and console escaping across platforms; done means an agreed design with documented behavior and tests for the supported command form.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100