Ah, I understand. You are running just the mojos, not the actual phases. That 
sounds interesting. Let me ask you or anyone else, aren’t some of the mojos 
that attach to the lifecycle, specific to the lifecycle and cannot be used 
standalone? I’m pretty sure I remember seeing some plugins having equivalent 
mojos for lifecycle-bound mojos and for CLI mojos. If that is the case, you are 
going to detect in your new feature mojos that are lifecycle-bound mojos and 
try to run them standalone. Would that be a problem?


Alejandro



From: [email protected] [mailto:[email protected]] On 
Behalf Of Sandip Chitale
Sent: Monday, June 15, 2015 12:32 PM
To: Maven Integration for Eclipse users mailing list
Subject: 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: https://issues.apache.org/jira/browse/MNG-5768 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.

Cheers,
Sandip


On Mon, Jun 15, 2015 at 8:24 AM, Endo Alejandro 
<[email protected]<mailto:[email protected]>> 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,


Alejandro

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

Hi everyone,

I am trying to gauge support for feature like

https://bugs.eclipse.org/bugs/show_bug.cgi?id=470138

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,
Sandip

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
[email protected]<mailto:[email protected]>
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users


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
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/m2e-users

Reply via email to