Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Comments on Bug 470138

I perfectly understand that when the user invokes maven with a phase name, as it stands today, all the preceding phases are run. It is also true that you can invoke a single goal by specifying it. You can specify multiple goals also. With the new syntax of being able to pass the execution id along with the goal you can also run non default-* it is basically possible to run any specific goal. (See: as implemented in Maven 3.3.1.

I think you may agree that a single goal execution is basically random-access. What I am proposing is simply a shortcut, self maintaining way to invoke each of these goals by simply specifying the phases. The phases of a lifecycle are more stable. Goals generally are configured in poms and are thus may change over time.

Granted, this may not work for users 100% of the time but when it works it is useful IMO.

I had mentioned in one of the previous blog entries that I was in-fact inspired by the Lifecycle mapping functionality of M2E.

I also agree that this belongs may be at the maven level via some modified/extended syntax of maven CLI. However when I attempted to enhance the 

> mvn help:describe --Dcmd=somephase

I did not get far. So I was able to put this together with M2E fragment - based on the code I saw in Life Cycle Mapping property page in M2E. This renders the use of my fragment to interactive use for now.

It is possible that this idea is too radical for M2E or maven community in which case it will have a deserved rejection in the marketplace of ideas :)

I will update my blog entry and the bugzilla to explain the thinking behind this better.

Hope this clarifies where I am coming from at this.


On Mon, Jun 15, 2015 at 8:24 AM, Endo Alejandro <Alejandro.Endo@xxxxxxxxxxxxxxx> wrote:

Without understanding 100%, this sounds like it would be VERY brittle. What exactly are you trying to accomplish with the new functionality? I didn’t see that in your blog post


Also, AFAIK, maven core doesn’t support running only parts of its lifecycle, how can your patch do that? (e.g. run “package” without running “compile” first). Maybe if you explain a bit how this fits maven (nothing to do with m2e) then we can understand better, but it sounds like you are just breaking the maven lifecycle, or am I missing something? A lot of plugins and mental models assume that the lifecycle is linear, not “random-access”


BTW, all that was about running particular phases without their previous ones. The first part about listing the mojos in each phase is very useful, but I also wonder how it’s different from the current m2e functionality on “Lifecycle Mapping”.


Once I/we understand better I/we can give a more informed opinion.


Thank you,





From: m2e-users-bounces@xxxxxxxxxxx [mailto:m2e-users-bounces@xxxxxxxxxxx] On Behalf Of Sandip Chitale
Sent: Sunday, June 14, 2015 07:53 PM
To: m2e-users@xxxxxxxxxxx
Subject: [m2e-users] Comments on Bug 470138


Hi everyone,


I am trying to gauge support for feature like



Can the community please comment on the bug. In a nutshell the idea is to be able to run selective phases (sans preceding phases) of a pom.


Thanks in advance,


DISCLAIMER: Privileged and/or Confidential information may be contained in this message. If you are not the addressee of this message, you may not copy, use or deliver this message to anyone. In such event, you should destroy the message and kindly notify the sender by reply e-mail. It is understood that opinions or conclusions that do not relate to the official business of the company are neither given nor endorsed by the company. Thank You.

m2e-users mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top