You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Robert Scholte (JIRA)" <ji...@apache.org> on 2017/12/08 20:11:00 UTC
[jira] [Commented] (MNG-6319) Allow for building of the whole
project multiple times (with different phases/goals/lifecycles) but with
one command
[ https://issues.apache.org/jira/browse/MNG-6319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16284148#comment-16284148 ]
Robert Scholte commented on MNG-6319:
-------------------------------------
I've changed the markup a nity, assuming this is what you meant.
Have you tried {{clean install clean deploy}} because I think it does exactly what you describe.
But what you want to achieve by first install for all modules, then clean and deploy? Why do you want to do an install first?
Looks like you want MNG-5666
> Allow for building of the whole project multiple times (with different phases/goals/lifecycles) but with one command
> --------------------------------------------------------------------------------------------------------------------
>
> Key: MNG-6319
> URL: https://issues.apache.org/jira/browse/MNG-6319
> Project: Maven
> Issue Type: Sub-task
> Components: FDPFC, Plugins and Lifecycle
> Reporter: Daniel Cruver
> Priority: Trivial
> Fix For: 3.x / Backlog
>
>
> 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 message was sent by Atlassian JIRA
(v6.4.14#64029)